"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

ExceptionListenerPass.php  (symfony-4.4.14):ExceptionListenerPass.php  (symfony-4.4.15)
skipping to change at line 36 skipping to change at line 36
public function process(ContainerBuilder $container) public function process(ContainerBuilder $container)
{ {
if (false === $container->hasDefinition('twig')) { if (false === $container->hasDefinition('twig')) {
return; return;
} }
// to be removed in 5.0 // to be removed in 5.0
// register the exception listener only if it's currently used, else use the provided by FrameworkBundle // register the exception listener only if it's currently used, else use the provided by FrameworkBundle
if (null === $container->getParameter('twig.exception_listener.controlle r') && $container->hasDefinition('exception_listener')) { if (null === $container->getParameter('twig.exception_listener.controlle r') && $container->hasDefinition('exception_listener')) {
$container->removeDefinition('twig.exception_listener'); $container->removeDefinition('twig.exception_listener');
} else {
$container->removeDefinition('exception_listener');
if ($container->hasParameter('templating.engines')) { return;
$engines = $container->getParameter('templating.engines'); }
if (!\in_array('twig', $engines, true)) {
$container->removeDefinition('twig.exception_listener'); if ($container->hasParameter('templating.engines')) {
} $engines = $container->getParameter('templating.engines');
if (\in_array('twig', $engines, true)) {
$container->removeDefinition('exception_listener');
return;
} }
} }
$container->removeDefinition('twig.exception_listener');
} }
} }
 End of changes. 3 change blocks. 
7 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)