babdev / supplier-plugin
Supplier processing for Sylius.
Installs: 415
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^7.1
- sylius/sylius: ^1.0.4
Requires (Dev)
- behat/behat: ^3.3
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.0
- friends-of-behat/cross-container-extension: ^1.0
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.0
- friends-of-behat/variadic-extension: ^1.0
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^3.2
- phpstan/phpstan-shim: ^0.9.2
- phpunit/phpunit: ^6.5
- se/selenium-server-standalone: ^2.52
- sylius-labs/coding-standard: ^1.0
- symplify/easy-coding-standard: ^2.4
This package is auto-updated.
Last update: 2021-01-06 01:29:08 UTC
README
Simple Supplier integration for Sylius.
Usage
-
Install it:
$ composer require babdev/supplier-plugin
-
Add this plugin in
AppKernel.php
. Note that this plugin MUST be listed before the Sylius core bundles, therefore yourregisterBundles()
method should look similar to the following (a pull request would be welcome removing this requirement, as of this writing I haven't identified the issue causing it):public function registerBundles(): array { $preResourceBundles = [ new \BabDev\SyliusSupplierPlugin\BabDevSyliusSupplierPlugin(), ]; $appBundles = [ // Other local bundles you have installed ]; return array_merge($preResourceBundles, parent::registerBundles(), $appBundles); }
-
Import config file in
app/config/config.yml
:imports: - { resource: "@BabDevSyliusSupplierPlugin/Resources/config/app/config.yml" }
-
Import routing files in
app/config/routing.yml
:babdev_sylius_supplier_admin: resource: "@BabDevSyliusSupplierPlugin/Resources/config/app/admin_routing.yml" prefix: /admin # root path of SyliusAdmin
-
Sync the database
bin/console doctrine:migrations:diff
If you have already installed Sylius, you will need to run
bin/console doctrine:migrations:migrate
If you still need to run sylius:install, you can skip this last command.