Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function init(ModuleManager $e) |
||
26 | { |
||
27 | $events = $e->getEventManager()->getSharedManager(); |
||
28 | // Attach to helper set event and load the entity manager helper. |
||
29 | $events->attach('doctrine', 'loadCli.post', function (EventInterface $e) { |
||
30 | /* @var $cli \Symfony\Component\Console\Application */ |
||
31 | $cli = $e->getTarget(); |
||
32 | ConsoleRunner::addCommands($cli); |
||
33 | $cli->addCommands(array( |
||
34 | new GenerateFormCommand(), |
||
35 | new GenerateInputFilterCommand() |
||
36 | )); |
||
37 | }); |
||
38 | } |
||
39 | |||
52 |