Skip to content

Simple CMS on top of SymfonyCMF for Sylius applications.

Notifications You must be signed in to change notification settings

IntegralService/SyliusCmsBundle

 
 

Repository files navigation

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 in AppKernel.php (before SyliusGridBundle):

    new \Lakion\SyliusCmsBundle\LakionSyliusCmsBundle(),
  3. 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(),
  4. Import config file in app/config/config.yml:

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

    $ composer require jackalope/jackalope-doctrine-dbal
  7. 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

About

Simple CMS on top of SymfonyCMF for Sylius applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 83.0%
  • Gherkin 14.7%
  • HTML 2.3%