Simple CMS for Sylius.
-
Install it:
$ composer require lakion/sylius-cms-bundle
-
Add this bundle in
AppKernel.php
(beforeSyliusGridBundle
):new \Lakion\SyliusCmsBundle\LakionSyliusCmsBundle(),
-
Add dependent bundles in
AppKernel.php
if they do not exist yet:new \Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(), new \Sonata\BlockBundle\SonataBlockBundle(), new \Sonata\CoreBundle\SonataCoreBundle(), new \Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), new \Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(), new \Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(), new \Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(), new \Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
-
Import config file in
app/config/config.yml
:imports: - { resource: "@LakionSyliusCmsBundle/Resources/config/app/config.yml" }
-
Import routing files in
app/config/routing.yml
:lakion_sylius_cms_admin: resource: "@LakionSyliusCmsBundle/Resources/config/app/admin_routing.yml" prefix: /admin # root path of SyliusAdmin lakion_sylius_cms_shop: resource: "@LakionSyliusCmsBundle/Resources/config/app/shop_routing.yml"
-
Install PHPCR implementation of your choice:
$ composer require jackalope/jackalope-doctrine-dbal
-
Configure Doctrine PHPCR Bundle (
doctrine_phpcr
) inapp/config/config.yml
:doctrine_phpcr: session: backend: type: doctrinedbal connection: default workspace: default odm: auto_mapping: true auto_generate_proxy_classes: "%kernel.debug%"