mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-02-15 09:38:40 +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\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\Config\SettingsInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Installer class.
|
* Installer class.
|
||||||
|
|
@ -34,14 +35,14 @@ final class Installer extends InstallerAbstract
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@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')) {
|
if (\file_exists(__DIR__ . '/../SearchCommands.php')) {
|
||||||
\unlink(__DIR__ . '/../SearchCommands.php');
|
\unlink(__DIR__ . '/../SearchCommands.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
\file_put_contents(__DIR__ . '/../SearchCommands.php', '<?php return [];');
|
\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