ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilFileServicesSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
29 
30 class ilFileServicesSetupAgent extends Agent\NullAgent implements Agent
31 {
32  public function getInstallObjective(Config $config = null): Objective
33  {
34  return new ObjectiveCollection(
35  "Check for several PHP-Extensions needed by FileServices.",
36  true,
38  new PHPExtensionLoadedCondition("imagick"),
39  new PHPExtensionLoadedCondition("zip"),
42  )
43  );
44  }
45 
46  public function getUpdateObjective(Config $config = null): Objective
47  {
48  return $this->getInstallObjective($config);
49  }
50 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
getInstallObjective(Config $config=null)
Get the goals the agent wants to achieve on setup.
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getUpdateObjective(Config $config=null)
Get the goal the agent wants to achieve on update.
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A configuration for the setup.
Definition: Config.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...