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
When reloading a dependency within a module, the module should only be reloaded if it has not already been loaded.
Current behavior
However, this is only the case if the naming of the dependency is exactly the same.
It is now possible to specify modules as dependencies in 2 ways:
as a manual (namespace) string -> 'Laminas\Form'
as a class string specification of the module class -> \Laminas\Form\Module::class
if you now use both ways in your application (as part of a longer-term conversion to the 'new' class string specification), this function no longer works and the module is loaded twice and initialized 2 times.
Any configurations made before the second initialization will be overwritten.
How to reproduce
Expected behavior
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
When reloading a dependency within a module, the module should only be reloaded if it has not already been loaded.
Current behavior
However, this is only the case if the naming of the dependency is exactly the same.
It is now possible to specify modules as dependencies in 2 ways:
if you now use both ways in your application (as part of a longer-term conversion to the 'new' class string specification), this function no longer works and the module is loaded twice and initialized 2 times.
Any configurations made before the second initialization will be overwritten.
How to reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: