1 | <?php |
||
27 | class Module implements |
||
28 | BootstrapListenerInterface, |
||
29 | AutoloaderProviderInterface, |
||
30 | InitProviderInterface, |
||
31 | ConfigProviderInterface, |
||
32 | ModuleConfigKeyProviderInterface |
||
33 | { |
||
34 | /** |
||
35 | * Имя секции в конфиги приложения отвечающей за настройки модуля |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | const CONFIG_KEY = 'nnx_container_module_options'; |
||
40 | |||
41 | /** |
||
42 | * Имя модуля |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | const MODULE_NAME = __NAMESPACE__; |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getModuleConfigKey() |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @param ModuleManagerInterface $manager |
||
61 | * |
||
62 | * @throws Exception\InvalidArgumentException |
||
63 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
64 | */ |
||
65 | public function init(ModuleManagerInterface $manager) |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | * |
||
99 | * @param EventInterface $e |
||
100 | * |
||
101 | * @return array|void |
||
102 | * |
||
103 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
104 | */ |
||
105 | public function onBootstrap(EventInterface $e) |
||
113 | |||
114 | |||
115 | /** |
||
116 | * @return array |
||
117 | */ |
||
118 | public function getAutoloaderConfig() |
||
128 | |||
129 | |||
130 | /** |
||
131 | * @return mixed |
||
132 | */ |
||
133 | public function getConfig() |
||
137 | |||
138 | } |