-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong loading order of Modules generated by Core\Application #506
Comments
I forgot something: YAWIK/module/Core/src/Application.php Lines 158 to 163 in 911e586
This code was meant to allow to remove modules from the list prior to loading, but it is completely useless in this position, because the list of all modules is not generated at this point in the code execution. |
@TiSiE I will try to use DependencyIndicatorInterface in Organizations module, I hope this can make zf3 component installer making modules config in spesific order in /**
* Bootstrap class of the organizations module
*/
class Module implements BootstrapListenerInterface, DependencyIndicatorInterface
{
public function getModuleDependencies()
{
return [
'Core',
'Auth',
];
}
} I hope this can fix issue like #507 in future, because it will raise an error if Organization module loaded before Core or Auth module I will fix that ordering issue in next pull request.
What about this issue? Can we delete this scanAdditionalModule function or you have any suggestion to fix this? |
See yawik/standard#3 |
YAWIK/module/Core/src/Application.php
Lines 72 to 80 in 911e586
This will produce DependencyCheck errors, because additional modules will be loaded BEFORE the YAWIK modules.
In particular, when using yawik/JobsByMail, an exception occurs, because JobsByMail requires the Jobs module.
To get the ordering right, this might be a better approach:
The text was updated successfully, but these errors were encountered: