Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.24 KB

installation.md

File metadata and controls

54 lines (41 loc) · 1.24 KB

Installation

$ composer require bitbag/cms-plugin

Add plugin dependencies to your AppKernel.php file (note the new compiler pass):

public function registerBundles()
{
    return array_merge(parent::registerBundles(), [
        ...
        
        new \FOS\CKEditorBundle\FOSCKEditorBundle(), // WYSIWYG editor
        new \SitemapPlugin\SitemapPlugin(), // Sitemap support
        new \BitBag\SyliusCmsPlugin\BitBagSyliusCmsPlugin(),
    ]);
}

Install WYSIWYG editor (FOS CKEditor)

$ bin/console ckeditor:install

Import required config in your app/config/config.yml file:

# app/config/config.yml

imports:
    ...
    
    - { resource: "@BitBagSyliusCmsPlugin/Resources/config/config.yml" }

Import routing in your app/config/routing.yml file:

# app/config/routing.yml
...

bitbag_sylius_cms_plugin:
    resource: "@BitBagSyliusCmsPlugin/Resources/config/routing.yml"

Finish the installation by updating the database schema and installing assets:

$ bin/console doctrine:migrations:diff
$ bin/console doctrine:migrations:migrate
$ bin/console assets:install
$ bin/console sylius:theme:assets:install