Comments (6)
I went trough the gridbundle code and actually you don't need to load the phpcr-odm.xml
file.
This piece of code
foreach ($config['drivers'] as $enabledDriver) {
$loader->load(sprintf('services/integrations/%s.xml', $enabledDriver));
}
Is being executed in the SyliusGridExtension class. It means that you can just enable this in config.yml file. You need to do the same thing for the sylius_resource
and the sylius_grid
config
sylius_grid:
drivers:
- doctrine/orm
- doctrine/phpcr-odm
This means you can ignore my previous comment 😄
from cmsplugin.
I don't know if this is the best way to do so but I'm loading the file from my AppExtension (gridloader)
<?php
namespace AppBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
class AppExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$gridLoader = new Loader\XmlFileLoader($container, new FileLocator($container->getParameter('kernel.root_dir') . '/../vendor/sylius/sylius/src/Sylius/Bundle/GridBundle/Resources/config/services/integrations/doctrine'));
$gridLoader->load('phpcr-odm.xml');
}
}
If anybody knows a better way to do this...
from cmsplugin.
I had to include the GridBundle/Resources/config/services/integrations/doctrine/phpcr-odm.xml
config file for everything to work.
from cmsplugin.
Reopening since this should be added to installation docs or if possible configured in the bundle. /cc @pamil
from cmsplugin.
@Matth-- : how do you include the GridBundle/Resources/config/services/integrations/doctrine/phpcr-odm.xml
config file ?
@michalmarcinkowski : it seems that you also need to mention the following code in order to complete the installation
sylius_resource:
drivers:
- doctrine/orm
- doctrine/phpcr-odm
from cmsplugin.
thanks a lot @Matth-- for your quick answer !
from cmsplugin.
Related Issues (20)
- Error when creating a block with an image HOT 4
- Error on create custom block
- Parent must be an object NULL given. HOT 2
- Upgrade to Sylius 1.0.0-beta.2 and new plugin guidelines HOT 4
- CustomBlock's Index page aggregates items of all children classes
- ProductBlock should use autocomplete instead of simple choice
- Add basic SEO to static content pages HOT 2
- How it is better to add WYSIWYG for static content? HOT 2
- Following installation instructions fails on beta2 HOT 2
- Breadcrumbs in static content pages template
- Routing broken? HOT 2
- Beta-2 compatibility HOT 2
- sylius/sylius composer constraint prevents sylius upgrade HOT 7
- Unknown fetch type '12'
- Unit tests (phpspec) are missing
- jackalope/jackalope-doctrine-dbal HOT 2
- Unable to install - conflicting composer requirements HOT 5
- Unable to enable bundle - invalid class reference
- Cannot get it working on Sylius v1.1.x HOT 6
- ImagineBlock Deprecated in CMF Bundle HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmsplugin.