1 | <?php |
||
22 | class Module implements |
||
23 | BootstrapListenerInterface, |
||
24 | ControllerProviderInterface, |
||
25 | ConfigProviderInterface, |
||
26 | DependencyIndicatorInterface |
||
27 | { |
||
28 | /** |
||
29 | * {@inheritDoc} |
||
30 | */ |
||
31 | public function init(ModuleManagerInterface $manager) |
||
32 | { |
||
33 | // Initialize the console |
||
34 | $manager |
||
35 | ->getEventManager() |
||
36 | ->getSharedManager() |
||
37 | ->attach( |
||
38 | 'doctrine', |
||
39 | 'loadCli.post', |
||
40 | function (EventInterface $event) { |
||
41 | $event |
||
42 | ->getParam('ServiceManager') |
||
43 | ->get(CliConfigurator::class) |
||
44 | ->configure($event->getTarget()) |
||
45 | ; |
||
46 | }, |
||
47 | 1 |
||
48 | ); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function onBootstrap(EventInterface $event) |
||
72 | |||
73 | 72 | /** |
|
74 | * {@inheritDoc} |
||
75 | */ |
||
76 | public function getConfig() |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | public function getControllerConfig() |
||
88 | |||
89 | /** |
||
90 | * {@inheritDoc} |
||
91 | */ |
||
92 | public function getModuleDependencies() |
||
96 | } |
||
97 |