fix after settings pullout

This commit is contained in:
Dennis Eichhorn 2020-05-22 21:44:09 +02:00
parent 31d11ce352
commit 24662f681c

View File

@ -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);
}
/**