1 | <?php |
||
31 | class Module |
||
32 | implements ServiceLocatorAwareInterface, |
||
33 | ConfigProviderInterface, |
||
34 | AutoloaderProviderInterface, |
||
35 | BootstrapListenerInterface, |
||
36 | ServiceProviderInterface, |
||
37 | InitProviderInterface |
||
38 | { |
||
39 | |||
40 | use ServiceLocatorAwareTrait; |
||
41 | |||
42 | /** |
||
43 | * Имя секции в конфигах приложения, содержащей настройки модуля |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | const CONFIG_KEY = 'mteGrid'; |
||
48 | |||
49 | /** |
||
50 | * Имя модуля |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | const MODULE_NAME = __NAMESPACE__; |
||
55 | |||
56 | /** |
||
57 | * Получаем конфигурацию модуля |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getConfig() |
||
64 | |||
65 | /** |
||
66 | * Return an array for passing to Zend\Loader\AutoloaderFactory. |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | public function getAutoloaderConfig() |
||
86 | |||
87 | /** |
||
88 | * Listen to the bootstrap event |
||
89 | * |
||
90 | * @param EventInterface $e |
||
91 | * @return array |
||
92 | */ |
||
93 | public function onBootstrap(EventInterface $e) |
||
98 | |||
99 | /** |
||
100 | * Expected to return \Zend\ServiceManager\Config object or array to |
||
101 | * seed such an object. |
||
102 | * |
||
103 | * @return array|\Zend\ServiceManager\Config |
||
104 | */ |
||
105 | public function getServiceConfig() |
||
109 | |||
110 | /** |
||
111 | * Initialize workflow |
||
112 | * |
||
113 | * @param ModuleManagerInterface $manager |
||
114 | * @throws Exception\RuntimeException |
||
115 | */ |
||
116 | public function init(ModuleManagerInterface $manager) |
||
155 | |||
156 | /** |
||
157 | * Возвращает объект с настройками модуля |
||
158 | * |
||
159 | * @return ModuleOptions |
||
160 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
161 | */ |
||
162 | public function getModuleOptions() |
||
167 | } |
||
168 |