[DependencyInjection] Fixed a frozen constructor of a container with no parameters

This commit is contained in:
hidenorigoto 2012-08-07 01:00:34 +09:00
parent 2a124bc89c
commit 1a4a4ee93c

View File

@ -689,7 +689,13 @@ EOF;
*/ */
public function __construct() public function __construct()
{ {
\$this->parameters = \$this->getDefaultParameters(); EOF;
if ($this->container->getParameterBag()->all()) {
$code .= "\n \$this->parameters = \$this->getDefaultParameters();\n";
}
$code .= <<<EOF
\$this->services = \$this->services =
\$this->scopedServices = \$this->scopedServices =