Closed autowp closed 7 years ago
The only requirement for a Module
class is to be autoloadable. The initial positioning of the Module.php
in modules/ModuleName/Module.php
was a convention of the pre-composer era.
Ok. But my question is: why this structure is recommended and why whoever it recommends not follow own recommendation? Maybe change title to "One of possible structure"?
The documentation needs an update, because it describes the recommended structure of ZF2.
Btw. this is the current documentation: https://docs.zendframework.com/zend-modulemanager/intro/
Why none of the Zend/* modules does not meet the recommended structure in part of Module.php, src/ and config files?
For example https://github.com/zendframework/zend-mail