mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-02-15 09:38:40 +00:00
add app to installer
This commit is contained in:
parent
827b5896f4
commit
bfb162002e
|
|
@ -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 [];');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user