if (null !==
$this->targetDirRegex
) { $code =
str_replace('$parameters = []', "\$targetDir;\n protected \$parameters = []",
$code);
$code .= ' $this->targetDir = \\dirname($containerDir);'."\n";
} } if (Container::
class !== $this->baseClass
) { $r =
$this->container->
getReflectionClass($this->baseClass, false
);
if (null !==
$r && (null !==
$constructor =
$r->
getConstructor()) && 0 ===
$constructor->
getNumberOfRequiredParameters() && Container::
class !== $constructor->
getDeclaringClass()->name
) { $code .= " parent::__construct();\n";
$code .= " \$this->parameterBag = null;\n\n";
} } if ($this->container->
getParameterBag()->
all()) { $code .= " \$this->parameters = \$this->getDefaultParameters();\n\n";
} $code .= " \$this->services = \$this->privates = [];\n";