mangoweb-sylius/sylius-inventory-update-plugin

为Sylius提供的改进库存管理插件。

This package is auto-updated.

Last update: 2024-09-22 20:48:26 UTC


README

库存更新插件

安装

  1. composer require mangoweb-sylius/sylius-inventory-update-plugin
  2. 将插件类添加到您的 config/bundles.php
    return [
       ...
       MangoSylius\InventoryUpdatePlugin\MangoSyliusInventoryUpdatePlugin::class => ['all' => true],
    ];
  3. 将资源添加到 config/packages/_sylius.yaml
    imports:
         ...
         - { resource: "@MangoSyliusInventoryUpdatePlugin/Resources/config/resources.yml" }
  4. 将路由添加到 config/_routes.yaml
    mango_sylius_extended_channels:
        resource: '@MangoSyliusInventoryUpdatePlugin/Resources/config/routing.yml'
        prefix: /admin

开发

使用

  • /src 目录下开发您的插件
  • 查看 bin/ 目录以获取有用的命令

测试

在您的更改后,您必须确保测试仍然通过。

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

许可证

本库采用MIT许可证。

致谢

manGoweb 开发。