Skip to content

Commit c67f4c7

Browse files
Updated readme regarding bundle enabling
1 parent 3663b12 commit c67f4c7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ While the product will be formatted like ``Sneakers 19.99EUR`` in all relation-f
2626

2727

2828
## Installation
29-
1. Install the bundle using ``composer require basilicom/pimcore-path-formatter-bundle``
30-
2. Execute ``bin/console pimcore:bundle:enable BasilicomPathFormatterBundle``
29+
Install the bundle using ``composer require basilicom/pimcore-path-formatter-bundle``
30+
31+
Execute ``bin/console pimcore:bundle:enable BasilicomPathFormatterBundle``
32+
**or**
33+
add the following lines to `AppKernel::registerBundlesToCollection()` (**recommended**)
34+
```php
35+
if (class_exists('\\Basilicom\\PathFormatterBundle\\BasilicomPathFormatterBundle')) {
36+
$collection->addBundle(new \Basilicom\PathFormatterBundle\BasilicomPathFormatterBundle);
37+
}
38+
```
3139

3240
## Configuration
3341
1. Add the ``basilicom_path_formatter`` key to your Pimcore ``app/config/config.yml``

0 commit comments

Comments
 (0)