Преглед изворни кода

[FrameworkBundle] fixed typo

Fabien Potencier пре 15 година
родитељ
комит
68af528813
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/Symfony/Bundle/FrameworkBundle/Controller/InternalController.php

+ 2 - 1
src/Symfony/Bundle/FrameworkBundle/Controller/InternalController.php

@@ -34,7 +34,8 @@ class InternalController extends Controller
         $request = $this['request'];
         $attributes = $request->attributes;
 
-        unset($attributes['path'], $attributes['controller']);
+        $attributes->delete('path');
+        $attributes->delete('controller');
         if ('none' !== $path)
         {
             parse_str($path, $tmp);