Zend Framework 2.0 module configuration is spread across a series of files which can be found in the skeleton module. Some of the configuration files are described as follows:
Module.php
: The Zend Framework 2 module manager looks for theModule.php
file in the module's root folder. The module manager uses theModule.php
file to configure the module and invokes thegetAutoloaderConfig()
andgetConfig()
methods.autoload_classmap.php
: ThegetAutoloaderConfig()
method in the skeleton module loadsautoload_classmap.php
to include any custom overrides other than the classes loaded using the standard autoloader format. Entries can be added or removed to theautoload_classmap.php
file to manage these custom overrides.config/module.config.php
: ThegetConfig()
method loadsconfig/module.config.php
; this file is used for configuring various module configuration options including routes, controllers, layouts, and various other configurations.