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
If any extension is later added by ExtensionsExtension, then new extension is added after InjectExtension. This means, that any services added in extension in beforeCompile() can't take advantage of InjectExtension.
I believe, that line 159 (moving InjectExtension to end of extensions) should be after calling ExtensionsExtension::loadConfiguration() to line 168.
The text was updated successfully, but these errors were encountered:
dg
added a commit
that referenced
this issue
Jan 13, 2016
In
Nette\DI\Compiler::processExtensions()
(https://github.com/nette/di/blob/master/src/DI/Compiler.php#L159) isInjectExtension
moved to end of list of extension.If any extension is later added by
ExtensionsExtension
, then new extension is added afterInjectExtension
. This means, that any services added in extension inbeforeCompile()
can't take advantage ofInjectExtension
.I believe, that line 159 (moving
InjectExtension
to end of extensions) should be after callingExtensionsExtension::loadConfiguration()
to line 168.The text was updated successfully, but these errors were encountered: