Explorar el Código

Replace Container->hasParameter() with Container->getParameterBag()->has() in ExceptionFormatter

Thibault Duplessis hace 15 años
padre
commit
437559491f

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionFormatter.php

@@ -152,7 +152,7 @@ class ExceptionFormatter
             $text = $file;
         }
 
-        $linkFormat = $this->container->hasParameter('debug.file_link_format') ? $this->container->getParameter('debug.file_link_format') : ini_get('xdebug.file_link_format');
+        $linkFormat = $this->container->getParameterBag()->has('debug.file_link_format') ? $this->container->getParameter('debug.file_link_format') : ini_get('xdebug.file_link_format');
         if ('html' === $format && $file && $line && $linkFormat) {
             $link = strtr($linkFormat, array('%f' => $file, '%l' => $line));
             $text = sprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', $link, $text);