#25 fix scenario isolation

This commit is contained in:
Arnaud Langlade
2018-03-06 23:07:52 +01:00
parent ef2a93af4c
commit 1b492f56d1

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);