-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.config.php
More file actions
executable file
·37 lines (35 loc) · 1.08 KB
/
module.config.php
File metadata and controls
executable file
·37 lines (35 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* module.config.php
*
* @copyright Felix Buchheim
* @author Felix Buchheim <hanibal4nothing@gmail.com>
*/
return array(
'service_manager' => array(
'factories' => array(
'BaseModule\Logger\ErrorHandler' => function (
\Zend\ServiceManager\ServiceLocatorInterface $oServiceManager
) {
$aConfig = $oServiceManager->get('config');
$aOptions = $aConfig['baseModule']['errorHandler'];
return \BaseModule\Factory\ErrorHandler::factory($aOptions);
},
),
'invokables' => array(
'BaseModule\Helper\AppConfig' => 'BaseModule\Helper\AppConfig',
),
'initializers' => array(
function ($oInstance, $oServiceManager) {
if ($oInstance instanceof \BaseModule\Helper\AppConfig) {
$oInstance->fetchConfig($oServiceManager);
}
},
),
),
'view_manager' => array(
'strategies' => array(
'ViewJsonStrategy',
),
),
);