Skip to content

Commit be5f29e

Browse files
[Maintenance] Update readme
1 parent cb6d9e2 commit be5f29e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This plugin enables Sylius 2.0 applications to use the legacy shop frontend from
2626
1. Install the plugin via Composer:
2727

2828
```bash
29-
composer require sylius/legacy-shop-bridge-plugin
29+
composer require sylius/legacy-shop-bridge-plugin --no-scripts
3030
```
3131

3232
2. Enable the plugin and required bundles in `config/bundles.php`:
@@ -48,6 +48,7 @@ Add the plugin configuration import to your `config/packages/_sylius.yaml` (or m
4848

4949
```yaml
5050
imports:
51+
# ...
5152
- { resource: "@SyliusLegacyShopBridgePlugin/config/config.yaml" }
5253
```
5354
@@ -165,16 +166,16 @@ Add the following Twig paths configuration to your `config/packages/twig.yaml`:
165166
```yaml
166167
twig:
167168
paths:
168-
# Add these lines ONLY if you have overridden bundle templates in your project
169+
# ...
170+
169171
'%kernel.project_dir%/templates/bundles/SyliusShopBundle': 'SyliusShop'
170172
'%kernel.project_dir%/templates/bundles/SyliusUiBundle': 'SyliusUi'
171173
172-
# These two lines are REQUIRED
173174
'%kernel.project_dir%/vendor/sylius/legacy-shop-bridge-plugin/templates/bundles/SyliusShopBundle': 'SyliusShop'
174175
'%kernel.project_dir%/vendor/sylius/legacy-shop-bridge-plugin/templates/bundles/SyliusUiBundle': 'SyliusUi'
175176
```
176177

177-
**Note:** The first two lines are only needed if you have customized `SyliusShopBundle` or `SyliusUiBundle` templates in your `templates/bundles/` directory. The last two lines pointing to the plugin's templates are always required.
178+
**Note:** The order of these lines is strictly necessary.
178179

179180
### 6. Add Routes
180181

0 commit comments

Comments
 (0)