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:
parent
a5ab184fb8
commit
b5d2d32b44
17 changed files with 299 additions and 793 deletions
|
@ -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
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue