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 8a4ebef
Show file tree
Hide file tree
Showing 2 changed files with 10 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
3 changes: 3 additions & 0 deletions tests/Application/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ imports:
- { resource: '@SyliusCoreBundle/Resources/config/app/config.yml' }
- { resource: '@SyliusGmvBundle/config/services.xml' }

parameters:
locale: en_US

security:
firewalls:
main:
Expand Down

0 comments on commit 8a4ebef

Please sign in to comment.