1 | <?php |
||
26 | class Module implements |
||
27 | BootstrapListenerInterface, |
||
28 | AutoloaderProviderInterface, |
||
29 | InitProviderInterface, |
||
30 | ConfigProviderInterface |
||
31 | { |
||
32 | /** |
||
33 | * Имя секции в конфиги приложения отвечающей за настройки модуля |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | const CONFIG_KEY = 'nnx_entry_name_resolver_module_options'; |
||
38 | |||
39 | /** |
||
40 | * Имя модуля |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | const MODULE_NAME = __NAMESPACE__; |
||
45 | |||
46 | /** |
||
47 | * @param ModuleManagerInterface $manager |
||
48 | * |
||
49 | * @throws Exception\InvalidArgumentException |
||
50 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
51 | */ |
||
52 | public function init(ModuleManagerInterface $manager) |
||
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | * |
||
87 | * @param EventInterface $e |
||
88 | * |
||
89 | * @return array|void |
||
90 | * |
||
91 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
92 | */ |
||
93 | public function onBootstrap(EventInterface $e) |
||
101 | |||
102 | |||
103 | /** |
||
104 | * @return array |
||
105 | */ |
||
106 | public function getAutoloaderConfig() |
||
116 | |||
117 | |||
118 | /** |
||
119 | * @inheritdoc |
||
120 | * |
||
121 | * @return array |
||
122 | */ |
||
123 | public function getConfig() |
||
127 | |||
128 | } |