-
Run
composer require odiseoteam/sylius-vendor-plugin
. -
Add the plugin to the AppKernel but add it before SyliusResourceBundle. To do that you need change the registerBundles like this:
public function registerBundles(): array
{
$preResourceBundles = [
new \Odiseo\SyliusVendorPlugin\OdiseoSyliusVendorPlugin(),
];
$bundles = [
...
];
return array_merge($preResourceBundles, parent::registerBundles(), $bundles);
}
- Import the config.yml:
- { resource: "@OdiseoSyliusVendorPlugin/Resources/config/app/config.yml" }
- Import the vendor grid:
- { resource: "@OdiseoSyliusVendorPlugin/Resources/config/grids/vendor.yml" }
- Add the admin routes:
odiseo_sylius_admin_vendor:
resource: "@OdiseoSyliusVendorPlugin/Resources/config/routing/admin_vendor.yml"
- Add the shop routes:
odiseo_sylius_shop_vendor:
resource: "@OdiseoSyliusVendorPlugin/Resources/config/routing/shop_vendor.yml"
prefix: /vendors