Skip to content

Commit 461b513

Browse files
committed
[Maintenance] build fix
1 parent 2058bc6 commit 461b513

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/TestApplication/config/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
imports:
22
- { resource: "@AcmeSyliusExamplePlugin/config/config.yaml" }
3+
- { resource: "services_test.php" }
34

45
twig:
56
paths:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return function (ContainerConfigurator $container) {
8+
$env = $_ENV['APP_ENV'] ?? 'dev';
9+
10+
if (str_starts_with($env, 'test')) {
11+
$container->import('../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml');
12+
$container->import('@AcmeSyliusExamplePlugin/tests/Behat/Resources/services.xml');
13+
}
14+
};

0 commit comments

Comments
 (0)