Skip to content

Commit

Permalink
Fix for Sylius 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Jun 25, 2024
1 parent 31d6820 commit 28fdb46
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Application/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ final class TestKernel extends Kernel
{
public function registerBundles(): array
{
return [
$bundles = [
new FrameworkBundle(),
new SecurityBundle(),
new TwigBundle(),
Expand Down Expand Up @@ -108,7 +108,6 @@ public function registerBundles(): array
new BabDevPagerfantaBundle(),
new WebpackEncoreBundle(),
new winzouStateMachineBundle(),
new SyliusStateMachineAbstractionBundle(),
new DoctrineMigrationsBundle(),
new SonataBlockBundle(),
new SyliusLabsDoctrineMigrationsExtraBundle(),
Expand All @@ -118,6 +117,12 @@ public function registerBundles(): array
new NelmioAliceBundle(),
new FidryAliceDataFixturesBundle(),
];

if (SyliusCoreBundle::VERSION_ID >= '11300') {
$bundles[] = new SyliusStateMachineAbstractionBundle();
}

return $bundles;
}

public function registerContainerConfiguration(LoaderInterface $loader): void
Expand Down

0 comments on commit 28fdb46

Please sign in to comment.