Skip to content

Commit 31f7886

Browse files
committed
Convert IntegrationTestBundle config to PHP
1 parent c6321b9 commit 31f7886

8 files changed

Lines changed: 7 additions & 72 deletions

File tree

Tests/IntegrationTestBundle/DependencyInjection/Compiler/DoctrineStorageCompilerPass.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Symfony\Component\Config\FileLocator;
66
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
8+
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
89
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
910

1011
/**
@@ -18,8 +19,8 @@ class DoctrineStorageCompilerPass implements CompilerPassInterface {
1819

1920
public function process(ContainerBuilder $container) : void {
2021
if ($container->has('doctrine.dbal.default_connection')) {
21-
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
22-
$loader->load('doctrine_storage.xml');
22+
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
23+
$loader->load('doctrine_storage.php');
2324
}
2425
}
2526

Tests/IntegrationTestBundle/Resources/config/controller.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Tests/IntegrationTestBundle/Resources/config/doctrine_storage.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

Tests/IntegrationTestBundle/Resources/config/form_flow_with_autoconfiguration.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Tests/IntegrationTestBundle/Resources/config/form_flow_with_parent_service.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Tests/config/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
imports:
2-
- { resource: '@CraueFormFlowBundle/Resources/config/form_flow.xml' }
3-
- { resource: '@IntegrationTestBundle/Resources/config/controller.xml' }
2+
- { resource: '@CraueFormFlowBundle/Resources/config/form_flow.php' }
3+
- { resource: '@IntegrationTestBundle/Resources/config/controller.php' }
44
- { resource: config_hacks.php }
55

66
framework:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
imports:
22
- { resource: config.yml }
3-
- { resource: '@IntegrationTestBundle/Resources/config/form_flow_with_autoconfiguration.xml' }
3+
- { resource: '@IntegrationTestBundle/Resources/config/form_flow_with_autoconfiguration.php' }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
imports:
22
- { resource: config.yml }
3-
- { resource: '@IntegrationTestBundle/Resources/config/form_flow_with_parent_service.xml' }
3+
- { resource: '@IntegrationTestBundle/Resources/config/form_flow_with_parent_service.php' }

0 commit comments

Comments
 (0)