mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-01-11 18:48:41 +00:00
fix after settings pullout
This commit is contained in:
parent
31d11ce352
commit
24662f681c
|
|
@ -20,6 +20,7 @@ use phpOMS\Module\ModuleInfo;
|
|||
use phpOMS\System\File\PathException;
|
||||
use phpOMS\System\File\PermissionException;
|
||||
use phpOMS\Utils\Parser\Php\ArrayParser;
|
||||
use phpOMS\Config\SettingsInterface;
|
||||
|
||||
/**
|
||||
* Installer class.
|
||||
|
|
@ -34,14 +35,14 @@ final class Installer extends InstallerAbstract
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function install(DatabasePool $dbPool, ModuleInfo $info) : void
|
||||
public static function install(DatabasePool $dbPool, ModuleInfo $info, SettingsInterface $cfgHandler) : void
|
||||
{
|
||||
if (\file_exists(__DIR__ . '/../SearchCommands.php')) {
|
||||
\unlink(__DIR__ . '/../SearchCommands.php');
|
||||
}
|
||||
|
||||
\file_put_contents(__DIR__ . '/../SearchCommands.php', '<?php return [];');
|
||||
parent::install($dbPool, $info);
|
||||
parent::install($dbPool, $info, $cfgHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user