zendframework / zend-modulemanager

ModuleManager component from Zend Framework
BSD 3-Clause "New" or "Revised" License
44 stars 27 forks source link

Why none of the modules does not meet the recommended structure? #52

Closed autowp closed 7 years ago

autowp commented 7 years ago

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

Ocramius commented 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.

autowp commented 7 years ago

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"?

froschdesign commented 7 years ago

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/