There was an error while loading. Please reload this page.
1 parent 2a124bc commit 1a4a4eeCopy full SHA for 1a4a4ee
src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
@@ -689,7 +689,13 @@ private function addFrozenConstructor()
689
*/
690
public function __construct()
691
{
692
- \$this->parameters = \$this->getDefaultParameters();
+EOF;
693
+
694
+ if ($this->container->getParameterBag()->all()) {
695
+ $code .= "\n \$this->parameters = \$this->getDefaultParameters();\n";
696
+ }
697
698
+ $code .= <<<EOF
699
700
\$this->services =
701
\$this->scopedServices =
0 commit comments