-
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
Version: 3.2.0
Bug Description
config/common.neon
parameters:
secretDir: 'mySecretDir'
extensions:
myDiExtension: Plugin\DIExtensionDIExtension 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);
...
Metadata
Metadata
Assignees
Labels
No labels