3.4 Bundles Registration
Open tests/TestApplication/config/bundles.php
and add your plugin bundle.
If your plugin depends on other bundles that are not already registered in
vendor/sylius/test-application/config/bundles.php
, add them here as well.
Example:
<?php
declare(strict_types=1);
$bundles = [
YourVendor\YourPlugin\YourPluginBundle::class => ['all' => true],
// Other bundles
];
return $bundles;
If a dependency is optional, you can load it conditionally:
if (class_exists(winzou\Bundle\StateMachineBundle\winzouStateMachineBundle::class)) {
$bundles[winzou\Bundle\StateMachineBundle\winzouStateMachineBundle::class] = ['all' => true];
}
Last updated
Was this helpful?