[FrameworkBundle] changed the default value of ignore_errors according to the current debug value

This commit is contained in:
Fabien Potencier 2010-08-24 14:35:23 +02:00
parent ec8500bd64
commit 3c42e0b6ce

View File

@ -117,7 +117,7 @@ class ControllerResolver extends BaseControllerResolver
$options = array_merge(array(
'path' => array(),
'query' => array(),
'ignore_errors' => true,
'ignore_errors' => !$this->container->getParameter('kernel.debug'),
'alt' => array(),
'standalone' => false,
'comment' => '',