Skip to content

Commit 2f48a04

Browse files
committed
OP-291: Bring back installations steps using recipes and make them optional
1 parent 516c2bb commit 2f48a04

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

doc/01-installation.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,36 @@
1212
composer require bitbag/wishlist-plugin
1313
```
1414

15-
2. Override `OrderItemController`
15+
2. (optional) Add plugin dependencies to your `config/bundles.php` file:
16+
17+
```php
18+
// config/bundles.php
19+
20+
return [
21+
...
22+
23+
BitBag\SyliusWishlistPlugin\BitBagSyliusWishlistPlugin::class => ['all' => true],
24+
];
25+
```
26+
27+
3. (optional) Import required config in your `config/packages/_sylius.yaml` file:
28+
29+
```yaml
30+
# config/packages/_sylius.yaml
31+
imports:
32+
...
33+
- { resource: "@BitBagSyliusWishlistPlugin/Resources/config/config.yml" }
34+
```
35+
36+
4. (optional) Import routing in your `config/routes.yaml` file:
37+
38+
```yaml
39+
# config/routes.yaml
40+
bitbag_sylius_wishlist_plugin:
41+
resource: "@BitBagSyliusWishlistPlugin/Resources/config/routing.yml"
42+
```
43+
44+
5. Override `OrderItemController`
1645

1746
```yaml
1847
sylius_order:
@@ -23,7 +52,7 @@ sylius_order:
2352
2453
```
2554

26-
3. Add plugin templates:
55+
6. Add plugin templates:
2756

2857
- Inject blocks:
2958

@@ -44,24 +73,24 @@ sylius_ui:
4473
- Override templates:
4574

4675
```bash
47-
cp vendor/bitbag/wishlist-plugin/src/Resources/view/Product/Show/_addToCart.html.twig templates/bundles/SyliusShopBundle/Product/Show
76+
cp vendor/bitbag/wishlist-plugin/src/Resources/views/Product/Show/_addToCart.html.twig templates/bundles/SyliusShopBundle/Product/Show
4877
```
4978

50-
4. Clear application cache by using command:
79+
7. Clear application cache by using command:
5180

5281
```bash
5382
bin/console cache:clear
5483
```
5584

56-
5. Update your database
85+
8. Update your database
5786

5887
```bash
5988
bin/console doctrine:migrations:migrate
6089
```
6190

6291
**Note:** If you are running it on production, add the `-e prod` flag to this command.
6392

64-
6. Add plugin assets to your project
93+
9. Add plugin assets to your project
6594

6695
We recommend you to use Webpack (Encore), for which we have prepared four different instructions on how to add this plugin's assets to your project:
6796

0 commit comments

Comments
 (0)