From bfb162002ec3b5701115f9a65c334c9dc4493b18 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 24 Jun 2021 00:03:34 +0200 Subject: [PATCH] add app to installer --- Admin/Installer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index b17b4eb..dfc0754 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -21,6 +21,7 @@ use phpOMS\Module\ModuleInfo; use phpOMS\System\File\PathException; use phpOMS\System\File\PermissionException; use phpOMS\Utils\Parser\Php\ArrayParser; +use phpOMS\Application\ApplicationAbstract; /** * Installer class. @@ -48,7 +49,7 @@ final class Installer extends InstallerAbstract /** * Install data from providing modules. * - * @param DatabasePool $dbPool Database pool + * @param Application $app Application * @param array $data Module info * * @return array @@ -58,7 +59,7 @@ final class Installer extends InstallerAbstract * * @since 1.0.0 */ - public static function installExternal(DatabasePool $dbPool, array $data) : array + public static function installExternal(ApplicationAbstract $app, array $data) : array { if (!\file_exists(__DIR__ . '/../SearchCommands.php')) { \file_put_contents(__DIR__ . '/../SearchCommands.php', '