1 | <?php |
||
28 | class Module implements |
||
29 | BootstrapListenerInterface, |
||
30 | AutoloaderProviderInterface, |
||
31 | InitProviderInterface, |
||
32 | ConfigProviderInterface, |
||
33 | ModuleConfigKeyProviderInterface, |
||
34 | DependencyIndicatorInterface |
||
35 | { |
||
36 | /** |
||
37 | * Имя секции в конфиги приложения отвечающей за настройки модуля |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | const CONFIG_KEY = 'nnx_jms_serializer'; |
||
42 | |||
43 | /** |
||
44 | * Имя секции в конфиги приложения отвечающей за настройки сервис менеджера для данного модуля |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | const MODULE_SERVICE_MANAGER_CONFIG_KEY = 'nnx_jms_serializer_service'; |
||
49 | |||
50 | |||
51 | /** |
||
52 | * Имя модуля |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | const MODULE_NAME = __NAMESPACE__; |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | public function getModuleDependencies() |
||
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getModuleConfigKey() |
||
78 | |||
79 | |||
80 | /** |
||
81 | * @param ModuleManagerInterface $manager |
||
82 | * |
||
83 | * @throws Exception\InvalidArgumentException |
||
84 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
85 | */ |
||
86 | public function init(ModuleManagerInterface $manager) |
||
109 | |||
110 | /** |
||
111 | * @inheritdoc |
||
112 | * |
||
113 | * @param EventInterface $e |
||
114 | * |
||
115 | * @return array|void |
||
116 | * |
||
117 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
118 | */ |
||
119 | public function onBootstrap(EventInterface $e) |
||
127 | |||
128 | |||
129 | /** |
||
130 | * @return array |
||
131 | */ |
||
132 | public function getAutoloaderConfig() |
||
142 | |||
143 | |||
144 | /** |
||
145 | * @inheritdoc |
||
146 | * |
||
147 | * @return array |
||
148 | */ |
||
149 | public function getConfig() |
||
158 | |||
159 | } |