add app to installer

This commit is contained in:
Dennis Eichhorn 2021-06-24 00:03:34 +02:00
parent 827b5896f4
commit bfb162002e

View File

@ -21,6 +21,7 @@ use phpOMS\Module\ModuleInfo;
use phpOMS\System\File\PathException; use phpOMS\System\File\PathException;
use phpOMS\System\File\PermissionException; use phpOMS\System\File\PermissionException;
use phpOMS\Utils\Parser\Php\ArrayParser; use phpOMS\Utils\Parser\Php\ArrayParser;
use phpOMS\Application\ApplicationAbstract;
/** /**
* Installer class. * Installer class.
@ -48,7 +49,7 @@ final class Installer extends InstallerAbstract
/** /**
* Install data from providing modules. * Install data from providing modules.
* *
* @param DatabasePool $dbPool Database pool * @param Application $app Application
* @param array $data Module info * @param array $data Module info
* *
* @return array * @return array
@ -58,7 +59,7 @@ final class Installer extends InstallerAbstract
* *
* @since 1.0.0 * @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')) { if (!\file_exists(__DIR__ . '/../SearchCommands.php')) {
\file_put_contents(__DIR__ . '/../SearchCommands.php', '<?php return [];'); \file_put_contents(__DIR__ . '/../SearchCommands.php', '<?php return [];');