parent::
build($container);
$registerListenersPass =
new RegisterListenersPass();
$registerListenersPass->
setHotPathEvents([ KernelEvents::REQUEST,
KernelEvents::CONTROLLER,
KernelEvents::CONTROLLER_ARGUMENTS,
KernelEvents::RESPONSE,
KernelEvents::FINISH_REQUEST,
]);
if (class_exists(ConsoleEvents::
class)) { $registerListenersPass->
setNoPreloadEvents([ ConsoleEvents::COMMAND,
ConsoleEvents::TERMINATE,
ConsoleEvents::ERROR,
]);
} $container->
addCompilerPass(new AssetsContextPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION
);
$container->
addCompilerPass(new LoggerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32
);
$container->
addCompilerPass(new RegisterControllerArgumentLocatorsPass());
$container->
addCompilerPass(new RemoveEmptyControllerArgumentLocatorsPass(), PassConfig::TYPE_BEFORE_REMOVING
);
$container->
addCompilerPass(new RoutingResolverPass());