-
Notifications
You must be signed in to change notification settings - Fork 27
Module "Generator" causes fatal error after update to zend-module-manager 2.8.0 #72
Comments
Quick work-around is to change the application.config.php entry from 'Generator' to Generator\Module::class |
Looks like this was caused by #5. |
One possible fix is to change order to look for |
This is the second time in the past 2 months I've had #5 come up. I don't think anybody ever expected module names could conflict with reserved PHP classes... We may have to revisit that to check for a namespace separator in the module name before attempting to see if the class exists; if no namespace separator is present, we should likely treat it as a namespace, and not a class. Thoughts? |
That's the fallback lookup at this point. I'm not sure what impact it would make if we looked for that first; if somebody with an existing app that demonstrates the behavior would like to give it a try, I'd appreciate it. |
After a general composer update my application just broke with following error:
After looking up the breaking change I noticed these new lines in the
ModuleResolverListener
:zend-modulemanager/src/Listener/ModuleResolverListener.php
Lines 27 to 29 in c2c5b52
It was all working before. Do I now have to rename my module or is there a way to fix this behaviour?
The text was updated successfully, but these errors were encountered: