1 | <?php |
||
24 | class Module implements |
||
25 | BootstrapListenerInterface, |
||
26 | AutoloaderProviderInterface, |
||
27 | InitProviderInterface, |
||
28 | ConfigProviderInterface |
||
29 | { |
||
30 | /** |
||
31 | * Имя секции в конфиги приложения отвечающей за настройки модуля |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | const CONFIG_KEY = 'nnx_container'; |
||
36 | |||
37 | /** |
||
38 | * Имя модуля |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | const MODULE_NAME = __NAMESPACE__; |
||
43 | |||
44 | /** |
||
45 | * @param ModuleManagerInterface $manager |
||
46 | * |
||
47 | * @throws Exception\InvalidArgumentException |
||
48 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
49 | */ |
||
50 | public function init(ModuleManagerInterface $manager) |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | * |
||
58 | * @param EventInterface $e |
||
59 | * |
||
60 | * @return array|void |
||
61 | * |
||
62 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
63 | */ |
||
64 | public function onBootstrap(EventInterface $e) |
||
72 | |||
73 | |||
74 | /** |
||
75 | * @return array |
||
76 | */ |
||
77 | public function getAutoloaderConfig() |
||
87 | |||
88 | |||
89 | /** |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function getConfig() |
||
96 | |||
97 | } |