Version: 3.2.0
Bug Description
config/common.neon
parameters:
secretDir: 'mySecretDir'
extensions:
myDiExtension: Plugin\DIExtension
DIExtension class
...
class DIExtension extends CompilerExtension
{
public function loadConfiguration()
{
$this->compiler->loadConfig(__DIR__ . '/di.neon');
}
}
di.neon
services:
- Plugin\MyService(%secretDir%)
Parameter secretDir is not exchanged (translated) with its value mySecretDir
Expected Behavior
Parameter secretDir will be "translated" to its value mySecretDir
Possible Solution
Load configs in \Nette\DI\Compiler::processExtensions() before running this $first extensions:
$first = $this->getExtensions(Extensions\ParametersExtension::class) + $this->getExtensions(Extensions\ExtensionsExtension::class);
...
Version: 3.2.0
Bug Description
config/common.neon
DIExtension class
di.neon
Parameter
secretDiris not exchanged (translated) with its valuemySecretDirExpected Behavior
Parameter
secretDirwill be "translated" to its valuemySecretDirPossible Solution
Load configs in
\Nette\DI\Compiler::processExtensions()before running this$firstextensions: