Skip to content

mangoweb-sylius/SyliusInventoryUpdatePlugin

Repository files navigation

Inventory update plugin

Installation

  1. composer require mangoweb-sylius/sylius-inventory-update-plugin
  2. Add plugin classes to your config/bundles.php:
    return [
       ...
       MangoSylius\InventoryUpdatePlugin\MangoSyliusInventoryUpdatePlugin::class => ['all' => true],
    ];
  3. Add resource to config/packages/_sylius.yaml
    imports:
         ...
         - { resource: "@MangoSyliusInventoryUpdatePlugin/Resources/config/resources.yml" }
  4. Add routing to config/_routes.yaml
    mango_sylius_extended_channels:
        resource: '@MangoSyliusInventoryUpdatePlugin/Resources/config/routing.yml'
        prefix: /admin

Development

Usage

  • Develop your plugin in /src
  • See bin/ for useful commands

Testing

After your changes you must ensure that the tests are still passing.

$ composer install
$ bin/console doctrine:schema:create -e test
$ bin/behat
$ bin/phpstan.sh
$ bin/ecs.sh

License

This library is under the MIT license.

Credits

Developed by manGoweb.