Version: dev-master, 3.0.x, 2.4.x
Bug Description
Parameters attribute in generated DI container contain unresolved Nette\DI\Definitions\Statement instances.
Steps To Reproduce
Generate container with the following config:
parameters:
bar: ::getenv(FOO)
The generated code of DI container will have something like this in constructor:
$this->parameters += [
'bar' => Nette\PhpGenerator\Helpers::createObject('Nette\DI\Definitions\Statement', [
'arguments' => ['FOO'],
"\x00Nette\\DI\\Definitions\\Statement\x00entity" => ['', 'getenv'],
]),
];
Expected Behavior
I would expect the parameters to be resolved the same way as they are if they are used as arguments in service definitions.
Version: dev-master, 3.0.x, 2.4.x
Bug Description
Parameters attribute in generated DI container contain unresolved
Nette\DI\Definitions\Statementinstances.Steps To Reproduce
Generate container with the following config:
The generated code of DI container will have something like this in constructor:
Expected Behavior
I would expect the parameters to be resolved the same way as they are if they are used as arguments in service definitions.