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

[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()
   {
-    parent::__construct(\$this->getDefaultParameters());
+    parent::__construct();
+
+    \$this->parameters = \$this->getDefaultParameters();
   }
 
 EOF;