protected function loadConfigurationFile(InputInterface $input, ServiceContainer $container) { $container->setShared('event_dispatcher.listeners.phpguard', function ($c) { $ext = new PhpGuardExtension(); if ($runner = CodeCoverageSession::getCached()) { $ext->setCoverageRunner($runner); } $ext->load($c); return $ext; }); parent::loadConfigurationFile($input, $container); }