|
@@ 66-75 (lines=10) @@
|
| 63 |
|
return $container; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
private function configureConfiguration(ContainerBuilder $container) |
| 67 |
|
{ |
| 68 |
|
$container->setDefinition(PHPUnitBinFile::class, new Definition(PHPUnitBinFile::class)); |
| 69 |
|
$container->setDefinition(PHPUnitConfig::class, new Definition(PHPUnitConfig::class, [ |
| 70 |
|
'%paraunit.phpunit_config_filename%' |
| 71 |
|
])); |
| 72 |
|
$container->setDefinition(TempFilenameFactory::class, new Definition(TempFilenameFactory::class, [ |
| 73 |
|
new Reference(TempDirectory::class), |
| 74 |
|
])); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
private function configureEventDispatcher(ContainerBuilder $container) |
| 78 |
|
{ |
|
@@ 77-95 (lines=19) @@
|
| 74 |
|
])); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
private function configureEventDispatcher(ContainerBuilder $container) |
| 78 |
|
{ |
| 79 |
|
if (class_exists('Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument')) { |
| 80 |
|
$container->setDefinition(EventDispatcherInterface::class, new Definition(EventDispatcher::class)); |
| 81 |
|
} else { |
| 82 |
|
$container->setDefinition( |
| 83 |
|
EventDispatcherInterface::class, |
| 84 |
|
new Definition(ContainerAwareEventDispatcher::class, [new Reference('service_container')]) |
| 85 |
|
); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
$container->addCompilerPass( |
| 89 |
|
new RegisterListenersPass( |
| 90 |
|
EventDispatcherInterface::class, |
| 91 |
|
null, |
| 92 |
|
ParallelConfiguration::TAG_EVENT_SUBSCRIBER |
| 93 |
|
) |
| 94 |
|
); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
private function configureFile(ContainerBuilder $container) |
| 98 |
|
{ |