1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* If you need an environment-specific system or application configuration, |
4
|
|
|
* there is an example in the documentation |
5
|
|
|
* @see http://framework.zend.com/manual/current/en/tutorials/config.advanced.html#environment-specific-system-configuration |
6
|
|
|
* @see http://framework.zend.com/manual/current/en/tutorials/config.advanced.html#environment-specific-application-configuration |
7
|
|
|
*/ |
8
|
|
|
return [ |
9
|
|
|
// This should be an array of module namespaces used in the application. |
10
|
|
|
'modules' => [ |
11
|
|
|
'Application', |
12
|
|
|
], |
13
|
|
|
|
14
|
|
|
// These are various options for the listeners attached to the ModuleManager |
15
|
|
|
'module_listener_options' => [ |
16
|
|
|
// This should be an array of paths in which modules reside. |
17
|
|
|
// If a string key is provided, the listener will consider that a module |
18
|
|
|
// namespace, the value of that key the specific path to that module's |
19
|
|
|
// Module class. |
20
|
|
|
'module_paths' => [ |
21
|
|
|
'./module', |
22
|
|
|
'./vendor', |
23
|
|
|
], |
24
|
|
|
|
25
|
|
|
// An array of paths from which to glob configuration files after |
26
|
|
|
// modules are loaded. These effectively override configuration |
27
|
|
|
// provided by modules themselves. Paths may use GLOB_BRACE notation. |
28
|
|
|
'config_glob_paths' => [ |
29
|
|
|
'config/autoload/{{,*.}global,{,*.}local}.php', |
30
|
|
|
], |
31
|
|
|
|
32
|
|
|
// Whether or not to enable a configuration cache. |
33
|
|
|
// If enabled, the merged configuration will be cached and used in |
34
|
|
|
// subsequent requests. |
35
|
|
|
//'config_cache_enabled' => $booleanValue, |
|
|
|
|
36
|
|
|
|
37
|
|
|
// The key used to create the configuration cache file name. |
38
|
|
|
//'config_cache_key' => $stringKey, |
|
|
|
|
39
|
|
|
|
40
|
|
|
// Whether or not to enable a module class map cache. |
41
|
|
|
// If enabled, creates a module class map cache which will be used |
42
|
|
|
// by in future requests, to reduce the autoloading process. |
43
|
|
|
//'module_map_cache_enabled' => $booleanValue, |
|
|
|
|
44
|
|
|
|
45
|
|
|
// The key used to create the class map cache file name. |
46
|
|
|
//'module_map_cache_key' => $stringKey, |
|
|
|
|
47
|
|
|
|
48
|
|
|
// The path in which to cache merged configuration. |
49
|
|
|
//'cache_dir' => $stringPath, |
|
|
|
|
50
|
|
|
|
51
|
|
|
// Whether or not to enable modules dependency checking. |
52
|
|
|
// Enabled by default, prevents usage of modules that depend on other modules |
53
|
|
|
// that weren't loaded. |
54
|
|
|
// 'check_dependencies' => true, |
|
|
|
|
55
|
|
|
], |
56
|
|
|
|
57
|
|
|
// Used to create an own service manager. May contain one or more child arrays. |
58
|
|
|
//'service_listener_options' => array( |
|
|
|
|
59
|
|
|
// array( |
60
|
|
|
// 'service_manager' => $stringServiceManagerName, |
|
|
|
|
61
|
|
|
// 'config_key' => $stringConfigKey, |
|
|
|
|
62
|
|
|
// 'interface' => $stringOptionalInterface, |
|
|
|
|
63
|
|
|
// 'method' => $stringRequiredMethodName, |
|
|
|
|
64
|
|
|
// ), |
65
|
|
|
// ), |
66
|
|
|
|
67
|
|
|
// Initial configuration with which to seed the ServiceManager. |
68
|
|
|
// Should be compatible with Zend\ServiceManager\Config. |
69
|
|
|
// 'service_manager' => array(), |
|
|
|
|
70
|
|
|
]; |
71
|
|
|
|
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.