Merge pull request #27 from arnolanglade/issue_25

WIP #25 - Fix scenario isolation
This commit is contained in:
Kamil Kokot
2018-05-25 14:59:32 +02:00
committed by GitHub

View File

@@ -224,10 +224,12 @@ final class SymfonyExtension implements Extension
/**
* @param ContainerBuilder $container
*
* @throws \Exception
*/
private function loadKernelRebooter(ContainerBuilder $container): void
{
$definition = new Definition(KernelRebooter::class, [new Reference(self::KERNEL_ID)]);
$definition = new Definition(KernelRebooter::class, [$container->get(self::KERNEL_ID)]);
$definition->addTag(EventDispatcherExtension::SUBSCRIBER_TAG);
$container->setDefinition(self::KERNEL_ID . '.rebooter', $definition);