浏览代码

[FrameworkBundle] fixed typo

Fabien Potencier 14 年之前
父节点
当前提交
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);