Before you can install the plugin you need a packagist token. You get a token once you buy the plugin. If you haven't done so yet, go to sylius-cms.com and hit the big buy button ;)
If you have Flex installed and just want the plugin installed with the default settings, go directly to Installing the plugin
Installing the plugin
Since the plugin is being provided through packagist.com you just have two steps to take before you can install the plugin:
NOTICE: It's important that you add the plugin before the SyliusGridBundle.
Add configuration file
Create the file config/packages/setono_sylius_cms.yaml and add the following:
Include routes configuration
Create the file config/routes/setono_sylius_cms.yaml and add the following:
The plugin also provides a routes file for non localized stores. All you do is to use @SetonoSyliusCMSPlugin/Resources/config/routes_no_locale.yaml instead of @SetonoSyliusCMSPlugin/Resources/config/routes.yaml
Update your database
Run the two following commands to create the tables needed for the CMS plugin:
# config/packages/setono_sylius_cms.yaml
imports:
- { resource: "@SetonoSyliusCMSPlugin/Resources/config/app/config.yaml" }
# Uncomment next line if you want some default fixtures for this plugin
# - { resource: "@SetonoSyliusCMSPlugin/Resources/config/app/fixtures.yaml" }