Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | trait ModuleEventHandling |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * @inheritDoc |
||
27 | */ |
||
28 | public function onEnable(array $context = []): void |
||
29 | { |
||
30 | $migrationsHandler = new MigrationsHandler($this->composerParser); |
||
31 | $migrationsHandler->onEnable($context); |
||
32 | |||
33 | $ormHandler = new OrmHandler(); |
||
34 | $ormHandler->onEnable($context); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | public function onDisable(array $context = []): void |
||
47 | } |
||
48 | } |
||
49 |