1 |
www |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* If you need an environment-specific system or application configuration,
|
|
|
5 |
* there is an example in the documentation
|
|
|
6 |
* @see https://docs.laminas.dev/tutorials/advanced-config/#environment-specific-system-configuration
|
|
|
7 |
* @see https://docs.laminas.dev/tutorials/advanced-config/#environment-specific-application-configuration
|
|
|
8 |
*/
|
|
|
9 |
return [
|
|
|
10 |
// Retrieve list of modules used in this application.
|
|
|
11 |
'modules' => require __DIR__ . '/modules.config.php',
|
|
|
12 |
|
|
|
13 |
// These are various options for the listeners attached to the ModuleManager
|
|
|
14 |
'module_listener_options' => [
|
|
|
15 |
// use composer autoloader instead of laminas-loader
|
|
|
16 |
'use_laminas_loader' => true,
|
|
|
17 |
|
|
|
18 |
// An array of paths from which to glob configuration files after
|
|
|
19 |
// modules are loaded. These effectively override configuration
|
|
|
20 |
// provided by modules themselves. Paths may use GLOB_BRACE notation.
|
|
|
21 |
'config_glob_paths' => [
|
|
|
22 |
realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php',
|
|
|
23 |
],
|
|
|
24 |
|
|
|
25 |
// Whether or not to enable a configuration cache.
|
|
|
26 |
// If enabled, the merged configuration will be cached and used in
|
|
|
27 |
// subsequent requests.
|
|
|
28 |
'config_cache_enabled' => false,
|
|
|
29 |
|
|
|
30 |
// The key used to create the configuration cache file name.
|
|
|
31 |
'config_cache_key' => 'application.config.cache',
|
|
|
32 |
|
|
|
33 |
// Whether or not to enable a module class map cache.
|
|
|
34 |
// If enabled, creates a module class map cache which will be used
|
|
|
35 |
// by in future requests, to reduce the autoloading process.
|
|
|
36 |
'module_map_cache_enabled' => true,
|
|
|
37 |
|
|
|
38 |
// The key used to create the class map cache file name.
|
|
|
39 |
'module_map_cache_key' => 'application.module.cache',
|
|
|
40 |
|
|
|
41 |
// The path in which to cache merged configuration.
|
|
|
42 |
'cache_dir' => 'data/cache/',
|
|
|
43 |
|
|
|
44 |
// Whether or not to enable modules dependency checking.
|
|
|
45 |
// Enabled by default, prevents usage of modules that depend on other modules
|
|
|
46 |
// that weren't loaded.
|
|
|
47 |
'check_dependencies' => true,
|
|
|
48 |
],
|
|
|
49 |
|
|
|
50 |
// Used to create an own service manager. May contain one or more child arrays.
|
|
|
51 |
// 'service_listener_options' => [
|
|
|
52 |
// [
|
|
|
53 |
// 'service_manager' => $stringServiceManagerName,
|
|
|
54 |
// 'config_key' => $stringConfigKey,
|
|
|
55 |
// 'interface' => $stringOptionalInterface,
|
|
|
56 |
// 'method' => $stringRequiredMethodName,
|
|
|
57 |
// ],
|
|
|
58 |
// ],
|
|
|
59 |
|
|
|
60 |
// Initial configuration with which to seed the ServiceManager.
|
|
|
61 |
// Should be compatible with Laminas\ServiceManager\Config.
|
|
|
62 |
// 'service_manager' => [],
|
|
|
63 |
];
|