19 declare(strict_types=1);
    35         return hash(
'sha256', self::class);
    40         return 'Fill ini with settings for components/ILIAS/VirusScanner_';
    60         $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
    62         $ini->setVariable(
'tools', 
'vscantype', $this->config->getVirusScanner());
    63         $ini->setVariable(
'tools', 
'scancommand', (
string) $this->config->getPathToScan());
    64         $ini->setVariable(
'tools', 
'cleancommand', (
string) $this->config->getPathToClean());
    65         $ini->setVariable(
'tools', 
'icap_host', (
string) $this->config->getIcapHost());
    66         $ini->setVariable(
'tools', 
'icap_port', (
string) $this->config->getIcapPort());
    67         $ini->setVariable(
'tools', 
'icap_service_name', (
string) $this->config->getIcapServiceName());
    68         $ini->setVariable(
'tools', 
'icap_client_path', (
string) $this->config->getIcapClientPath());
    71             throw new Setup\UnachievableException(
'Could not write ilias.ini.php');
    79         $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
    82             $ini->readVariable(
'tools', 
'vscantype') !== $this->config->getVirusScanner() ||
    83             $ini->readVariable(
'tools', 
'scancommand') !== $this->config->getPathToScan() ||
    84             $ini->readVariable(
'tools', 
'cleancommand') !== $this->config->getPathToClean() ||
    85             $ini->readVariable(
'tools', 
'icap_host') !== $this->config->getIcapHost() ||
    86             $ini->readVariable(
'tools', 
'icap_port') !== $this->config->getIcapPort() ||
    87             $ini->readVariable(
'tools', 
'icap_service_name') !== $this->config->getIcapServiceName() ||
    88             $ini->readVariable(
'tools', 
'icap_client_path') !== $this->config->getIcapClientPath();
 
ilVirusScannerSetupConfig $config
 
__construct(ilVirusScannerSetupConfig $config)
 
getPreconditions(Setup\Environment $environment)
 
achieve(Setup\Environment $environment)
 
isApplicable(Setup\Environment $environment)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An environment holds resources to be used in the setup process.