]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Merge pull request #11002 from nupplaphil/feat/modules_constructor
[friendica.git] / src / App.php
index 63d28fc80cfa4f8866f5aa232e735dc5f9f4790d..2dd8f9d1ab1e0581a74f38b7432cb1b4492a822e 100644 (file)
@@ -25,7 +25,7 @@ use Dice\Dice;
 use Exception;
 use Friendica\App\Arguments;
 use Friendica\App\BaseURL;
-use Friendica\App\Module;
+use Friendica\App\ModuleController;
 use Friendica\Core\Config\Factory\Config;
 use Friendica\Module\Maintenance;
 use Friendica\Security\Authentication;
@@ -567,16 +567,16 @@ class App
         *
         * This probably should change to limit the size of this monster method.
         *
-        * @param App\Module                  $module The determined module
+        * @param App\ModuleController        $module The determined module
         * @param App\Router                  $router
         * @param IManagePersonalConfigValues $pconfig
-        * @param Authentication              $auth The Authentication backend of the node
-        * @param App\Page                    $page The Friendica page printing container
+        * @param Authentication              $auth   The Authentication backend of the node
+        * @param App\Page                    $page   The Friendica page printing container
         *
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
-       public function runFrontend(App\Module $module, App\Router $router, IManagePersonalConfigValues $pconfig, Authentication $auth, App\Page $page, Dice $dice, float $start_time)
+       public function runFrontend(App\ModuleController $module, App\Router $router, IManagePersonalConfigValues $pconfig, Authentication $auth, App\Page $page, Dice $dice, float $start_time)
        {
                $this->profiler->set($start_time, 'start');
                $this->profiler->set(microtime(true), 'classinit');
@@ -703,7 +703,7 @@ class App
                        $page['page_title'] = $moduleName;
 
                        if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED)) {
-                               $module = new Module('maintenance', new Maintenance());
+                               $module = new ModuleController('maintenance', new Maintenance());
                        } else {
                                // determine the module class and save it to the module instance
                                // @todo there's an implicit dependency due SESSION::start(), so it has to be called here (yet)