Simple CMS on top of SymfonyCMF for Sylius applications.
PHP Cucumber HTML
Latest commit df1c7f4 Jan 13, 2017 @pamil pamil committed on GitHub Merge pull request #27 from pamil/tests-namespace
Rename tests namespace

README.md

Sylius CMS Bundle by Lakion License Version Build status on Linux Scrutinizer Quality Score

Simple CMS for Sylius.

Usage

  1. Install it:

    $ composer require lakion/sylius-cms-bundle
  2. Add this bundle & dependent ones to 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(),
    new \Lakion\SyliusCmsBundle\LakionSyliusCmsBundle(),
  3. Import config file in app/config/config.yml:

    imports:
       - { resource: "@LakionSyliusCmsBundle/Resources/config/app/config.yml" }
  4. 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"
  5. Install PHPCR implementation of your choice:

    $ composer require jackalope/jackalope-doctrine-dbal
  6. Configure Doctrine PHPCR Bundle (doctrine_phpcr) in app/config/config.yml:

    doctrine_phpcr:
        session:
            backend:
                type: doctrinedbal
                connection: default
            workspace: default
        odm:
            auto_mapping: true
            auto_generate_proxy_classes: "%kernel.debug%"

Complementary documentation