lakion / sylius-cms-bundle
Simple CMS for Sylius.
Installs: 325
Dependents: 0
Suggesters: 0
Security: 0
Stars: 27
Watchers: 14
Forks: 22
Type:sylius-plugin
Requires
- php: ^7.1
- doctrine/phpcr-odm: ^2.0@dev
- sylius/sylius: ^1.0
- symfony-cmf/block-bundle: ^2.0@dev
- symfony-cmf/content-bundle: ^2.0
- symfony-cmf/media-bundle: dev-master
- symfony-cmf/menu-bundle: ^2.1@dev
- symfony-cmf/routing-bundle: ^2.0
Requires (Dev)
- behat/behat: ^3.2
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^0.3
- friends-of-behat/cross-container-extension: ^0.2
- friends-of-behat/performance-extension: ^1.0
- friends-of-behat/service-container-extension: ^0.3
- friends-of-behat/symfony-extension: ^0.2.1
- friends-of-behat/variadic-extension: ^0.1
- jackalope/jackalope-doctrine-dbal: ^1.2
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^3.2
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2022-02-01 13:03:46 UTC
README
Simple CMS for Sylius.
Usage
-
Install PHPCR implementation of your choice:
$ composer require jackalope/jackalope-doctrine-dbal
-
Install this bundle:
$ composer require lakion/cms-plugin
-
Add this bundle & dependent ones to
AppKernel.php
if they do not exist yet:new \Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(), new \Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), new \Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(), new \Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(), new \Symfony\Cmf\Bundle\MediaBundle\CmfMediaBundle(), new \Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(), new \Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(), new \Lakion\CmsPlugin\LakionCmsPlugin(),
-
Import config file in
app/config/config.yml
:imports: - { resource: "@LakionCmsPlugin/Resources/config/app/config.yml" }
-
Import routing files in
app/config/routing.yml
:lakion_cms_admin: resource: "@LakionCmsPlugin/Resources/config/app/admin_routing.yml" prefix: /admin # root path of SyliusAdmin lakion_cms_shop: resource: "@LakionCmsPlugin/Resources/config/app/shop_routing.yml"
-
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%" sylius_resource: drivers: - doctrine/orm - doctrine/phpcr-odm sylius_grid: drivers: - doctrine/orm - doctrine/phpcr-odm
-
Update your database schema when using Doctrine
Using the schema updater:
$ bin/console doctrine:schema:update
Or migrations:
$ bin/console doctrine:migrations:diff $ bin/console doctrine:migrations:migrate
-
Initialize PHPCR repository
$ bin/console doctrine:phpcr:repository:init