Files
SyliusCmsPlugin/doc/customization.md
2018-11-21 18:20:59 +01:00

1.6 KiB

Customization

You can customize this plugin using:

In order to check what services are available with this plugin, run the following command:

$ bin/console debug:container bitbag_sylius_cms_plugin

Note:

All forms are prefixed with 'bitbag_sylius_cms_plugin.form.'*

If you want to check what routes are available with this plugin, use:

$ bin/console debug:router | grep bitbag_sylius_cms_plugin

To check parameters available with the plugin, execute:

$ bin/console debug:container --parameters | grep bitbag

How to disable localised URLs?

Customise vendor routing in the file app/Resources/BitBagSyliusCmsPlugin/config/routing.yml (create if not exist). Add:

bitbag_sylius_cms_plugin_admin:
    resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/admin.yml"
    prefix: /admin

bitbag_sylius_cms_plugin_shop:
    resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop.yml"
    prefix: /

sylius_sitemap:
   resource: "@SitemapPlugin/Resources/config/routing.yml"

Testing

$ composer install
$ cd tests/Application
$ yarn install
$ yarn run gulp
$ bin/console doctrine:schema:create -e test
$ bin/console ckeditor:install
$ bin/console assets:install public -e test
$ bin/console server:run 127.0.0.1:8080 -d public -e test
$ open http://localhost:8080
$ bin/behat
$ bin/phpspec run