From 3689cd21c26ba648d80e009737081d28e137129b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 17 Mar 2022 22:39:52 +0100 Subject: [PATCH] always use and many other todo implementations --- Admin/Install/Navigation.php | 4 ++-- Admin/Installer.php | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 91b1cfb..231cc24 100755 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -29,14 +29,14 @@ class Navigation /** * Install navigation providing * - * @param string $path Module path * @param ApplicationAbstract $app Application + * @param string $path Module path * * @return void * * @since 1.0.0 */ - public static function install(string $path, ApplicationAbstract $app) : void + public static function install(ApplicationAbstract $app, string $path) : void { \Modules\Navigation\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Navigation.install.json']); } diff --git a/Admin/Installer.php b/Admin/Installer.php index 20ba902..95d85cb 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -16,6 +16,7 @@ namespace Modules\QA\Admin; use Modules\QA\Models\QAApp; use Modules\QA\Models\QAAppMapper; +use phpOMS\Application\ApplicationAbstract; use phpOMS\Config\SettingsInterface; use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Module\InstallerAbstract; @@ -42,9 +43,9 @@ final class Installer extends InstallerAbstract /** * {@inheritdoc} */ - public static function install(DatabasePool $dbPool, ModuleInfo $info, SettingsInterface $cfgHandler) : void + public static function install(ApplicationAbstract $app, ModuleInfo $info, SettingsInterface $cfgHandler) : void { - parent::install($dbPool, $info, $cfgHandler); + parent::install($app, $info, $cfgHandler); $app = new QAApp(); $app->name = 'Backend';