- We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.
$ composer require bitbag/wishlist-plugin
- Add plugin dependencies to your
config/bundles.php
file:
// config/bundles.php
return [
...
BitBag\SyliusWishlistPlugin\BitBagSyliusWishlistPlugin::class => ['all' => true],
];
- Import required config in your
config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml
imports:
...
- { resource: "@BitBagSyliusWishlistPlugin/Resources/config/config.yml" }
- Import routing in your
config/routes.yaml
file:
# config/routes.yaml
bitbag_sylius_wishlist_plugin:
resource: "@BitBagSyliusWishlistPlugin/Resources/config/routing.yml"
- Update your database
$ bin/console doctrine:migrations:migrate
Note: If you are running it on production, add the -e prod
flag to this command.
Note: If you are updating this plugin from version 1.4.x you need to run:
$ bin/console doctrine:migrations:version BitBag\\SyliusWishlistPlugin\\Migrations\\Version20201029161558 --add --no-interaction
- Add plugin assets to your project
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:
- Import webpack config*
- Add entry to existing config)
- Import entries in your entry.js files)
- Your own custom config)
* Default option for plugin development
However, if you are not using Webpack, here are instructions on how to add optimized and compressed assets directly to your project templates: