Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

Commit c778cf0

Browse files
Fix #179
Allow to combine this bundle with Behat/Symfony2Extension
1 parent ae73844 commit c778cf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Knp/FriendlyContexts/DependencyInjection/Compiler/KernelPass.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ public function process(ContainerBuilder $container)
1313
$this->loadFileFromParameter($container, 'friendly.symfony_kernel.bootstrap');
1414
$this->loadFileFromParameter($container, 'friendly.symfony_kernel.path');
1515

16-
if (null !== $class = $this->getKernelClass($container)) {
16+
if ($container->has('symfony2_extension.kernel')) {
17+
$container->setAlias('friendly.symfony.kernel', 'symfony2_extension.kernel');
18+
} elseif (null !== $class = $this->getKernelClass($container)) {
1719
$definition = new Definition($class);
1820
$definition
1921
->addArgument($container->getParameter('friendly.symfony_kernel.env'))

0 commit comments

Comments
 (0)