Skip to content

Commit

Permalink
support of sylius 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dsbe-ak committed Apr 26, 2024
1 parent 9896873 commit 9be7306
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/Application/config/bundles.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Sylius\Bundle\CoreBundle\Application\Kernel;
use Sylius\Bundle\CoreBundle\SyliusCoreBundle;

$bundles = [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Expand Down Expand Up @@ -59,13 +59,17 @@
// Symplify\ConsoleColorDiff\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true]
];

if (Kernel::MINOR_VERSION <= 11) {
if (SyliusCoreBundle::MINOR_VERSION <= 11) {
$bundles[Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class] = ['all' => true];
}

if (Kernel::MINOR_VERSION >= 12) {
if (SyliusCoreBundle::MINOR_VERSION >= 12) {
$bundles[League\FlysystemBundle\FlysystemBundle::class] = ['all' => true];
$bundles[Sylius\Calendar\SyliusCalendarBundle::class ] = ['all' => true];
}

if (SyliusCoreBundle::MINOR_VERSION >= 13) {
$bundles[Sylius\Abstraction\StateMachine\SyliusStateMachineAbstractionBundle::class ] = ['all' => true];
}

return $bundles;

0 comments on commit 9be7306

Please sign in to comment.