Преглед на файлове

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

Thibault Duplessis преди 15 години
родител
ревизия
437559491f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionFormatter.php

+ 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);