Skip to content

Commit

Permalink
[Maintenance] Add conditional SyliusStateMachineAbstractionBundle loa…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
Rafikooo committed Feb 12, 2024
1 parent bf0ea82 commit 1111820
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/bundles.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

return [
use Sylius\Bundle\CoreBundle\Application\Kernel as SyliusKernel;

$bundles = [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Expand Down Expand Up @@ -61,3 +63,9 @@
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
];

if (SyliusKernel::VERSION_ID >= 11300) {
$bundles[Sylius\Abstraction\StateMachine\SyliusStateMachineAbstractionBundle::class] = ['all' => true];
}

return $bundles;

0 comments on commit 1111820

Please sign in to comment.