You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includes section can expand only parameters which are set to Nette\DI\Config\Loader::setParameters. Parameters which are set in parameters section in config files are ignored.
Steps To Reproduce
Neon file:
parameters:# filesystem type local|s3|ftpfilesystemType:localincludes:- filesystems/filesystem-%filesystemType%.neon
Ends with exception Nette\InvalidArgumentException Missing parameter 'filesystemType'.
Expected Behavior
Before processing includes section in neon files merge parameters from parameters section.
Version: 3.1.10
Bug Description
Includes section can expand only parameters which are set to Nette\DI\Config\Loader::setParameters. Parameters which are set in parameters section in config files are ignored.
Steps To Reproduce
Neon file:
Ends with exception Nette\InvalidArgumentException Missing parameter 'filesystemType'.
Expected Behavior
Before processing includes section in neon files merge parameters from parameters section.
Possible Solution
Maybe this change can be enough:
In /src/DI/Config/Loader.php:56 add these lines:
And of course, make public constant Nette\DI\Compiler::Parameters ..
The text was updated successfully, but these errors were encountered: