Split and delete ModuleController

- $moduleName is part of the argument string => App\Arguments
- $isBackend boolean already part of App\Mode::isBackend()
- $module is now the direct return of App\Router::getModule()
- ModuleController::run() moved to BaseModule::run()
This commit is contained in:
Philipp Holzer 2021-11-19 22:47:49 +01:00
commit b5d2d32b44
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
17 changed files with 299 additions and 793 deletions

View file

@ -181,12 +181,6 @@ return [
['determine', [$_SERVER, $_GET], Dice::CHAIN_CALL],
],
],
App\ModuleController::class => [
'instanceOf' => App\ModuleController::class,
'call' => [
['determineName', [], Dice::CHAIN_CALL],
],
],
\Friendica\Core\System::class => [
'constructParams' => [
[Dice::INSTANCE => '$basepath'],
@ -196,6 +190,7 @@ return [
'constructParams' => [
$_SERVER,
__DIR__ . '/routes.config.php',
[Dice::INSTANCE => Dice::SELF],
null
],
],