forked from 19FT/NFDevelopmentMode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module.php
45 lines (43 loc) · 1.57 KB
/
Module.php
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
38
39
40
41
42
43
44
45
<?php
/**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
* @copyright Copyright (c) 2013 Rob Allen (http://19ft.com)
*/
namespace NFDevelopmentMode;
class Module
{
public function getConfig()
{
return array(
'controllers' => array(
'invokables' => array(
'NFDevelopmentMode\DevelopmentModeController' => 'NFDevelopmentMode\DevelopmentModeController',
),
),
'console' => array(
'router' => array(
'routes' => array(
'development-disable' => array(
'options' => array(
'route' => 'development disable',
'defaults' => array(
'controller' => 'NFDevelopmentMode\DevelopmentModeController',
'action' => 'disable',
),
),
),
'development-enable' => array(
'options' => array(
'route' => 'development enable',
'defaults' => array(
'controller' => 'NFDevelopmentMode\DevelopmentModeController',
'action' => 'enable',
),
),
),
),
),
),
);
}
}