浏览代码

[DependencyInjection] made a small speed optimization

Fabien Potencier 15 年之前
父节点
当前提交
9b3eec8861
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/Symfony/Components/DependencyInjection/Dumper/PhpDumper.php

+ 3 - 1
src/Symfony/Components/DependencyInjection/Dumper/PhpDumper.php

@@ -306,7 +306,9 @@ EOF;
    */
    */
   public function __construct()
   public function __construct()
   {
   {
-    parent::__construct(\$this->getDefaultParameters());
+    parent::__construct();
+
+    \$this->parameters = \$this->getDefaultParameters();
   }
   }
 
 
 EOF;
 EOF;