| Total Complexity | 2 |
| Total Lines | 42 |
| 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['cli'], |
||
| 26 | $appSystemList['ctrlRouterLink'] |
||
| 27 | ); |
||
| 28 | |||
| 29 | $appSystemNS = '\BFW\Install\Core\AppSystems\\'; |
||
| 30 | |||
| 31 | //Change ModuleList class |
||
| 32 | $appSystemList['moduleList'] = $appSystemNS.'ModuleList'; |
||
| 33 | |||
| 34 | //Add new system : module installation system |
||
| 35 | $appSystemList['moduleInstall'] = $appSystemNS.'ModuleInstall'; |
||
| 36 | |||
| 37 | return $appSystemList; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function run() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |