Skip to content

Commit

Permalink
Update README to explain the change to do for IntlExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Sep 5, 2024
1 parent 79a6242 commit 95a58db
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,6 +34,10 @@ composer config --no-plugins --json extra.symfony.endpoint '["https://api.github
composer require monsieurbiz/sylius-rich-editor-plugin
```

<details>
<summary>For the installation without flex, follow these additional steps</summary>
<p>

Change your `config/bundles.php` file to add the line for the plugin :

```php
Expand All @@ -56,8 +63,37 @@ monsieurbiz_richeditor_admin:
resource: "@MonsieurBizSyliusRichEditorPlugin/Resources/config/routing/admin.yaml"
prefix: /%sylius_admin.path_name%
```
</p>
</details>

### 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
```
Expand Down

0 comments on commit 95a58db

Please sign in to comment.