Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Application extends \BFW\Application |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | * Remove not used systems, and add new system used by installer |
||
15 | */ |
||
16 | protected function obtainAppSystemList(): array |
||
17 | { |
||
18 | $appSystemList = parent::obtainAppSystemList(); |
||
19 | |||
20 | //Remove not used systems |
||
21 | unset( |
||
22 | $appSystemList['request'], |
||
23 | $appSystemList['session'], |
||
24 | $appSystemList['errors'], |
||
25 | $appSystemList['ctrlRouterLink'] |
||
26 | ); |
||
27 | |||
28 | $appSystemNS = '\BFW\Install\Core\AppSystems\\'; |
||
29 | |||
30 | //Change ModuleList class |
||
31 | $appSystemList['moduleList'] = $appSystemNS.'ModuleList'; |
||
32 | |||
33 | //Add new system : module installation system |
||
34 | $appSystemList['moduleManager'] = $appSystemNS.'ModuleManager'; |
||
35 | |||
36 | return $appSystemList; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function run() |
||
51 | } |
||
52 | } |
||
53 |