diff --git a/README.md b/README.md index ffd14d71..60e0e464 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ This plugin adds a rich editor on the fields you want. Now you can manage your c ## Installation + +### Require the plugin + If you want to use our recipes, you can configure your composer.json by running: ```bash @@ -31,6 +34,10 @@ composer config --no-plugins --json extra.symfony.endpoint '["https://api.github composer require monsieurbiz/sylius-rich-editor-plugin ``` +
+For the installation without flex, follow these additional steps +

+ Change your `config/bundles.php` file to add the line for the plugin : ```php @@ -56,8 +63,37 @@ monsieurbiz_richeditor_admin: resource: "@MonsieurBizSyliusRichEditorPlugin/Resources/config/routing/admin.yaml" prefix: /%sylius_admin.path_name% ``` +

+
+ +### Correct `Twig\Extra\Intl\IntlExtension` conflict + +Update the file `config/packages/twig.yaml` to remove the `IntlExtension` service : + +```yaml +twig: + paths: ['%kernel.project_dir%/templates'] + debug: '%kernel.debug%' + strict_variables: '%kernel.debug%' + +services: + # Removed by Rich Editor because it is loaded by the quire of twig/extra-bundle + # + # _defaults: + # public: false + # autowire: true + # autoconfigure: true + # + # Twig\Extra\Intl\IntlExtension: ~ + +when@test_cached: + twig: + strict_variables: true + +``` + +### Install the assets -And install the assets ```yaml bin/console asset:install ```