ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Setup\CLI\ReloadControlStructureCommand Class Reference

Reload Control Structure command. More...

+ Inheritance diagram for ILIAS\Setup\CLI\ReloadControlStructureCommand:
+ Collaboration diagram for ILIAS\Setup\CLI\ReloadControlStructureCommand:

Public Member Functions

 configure ()
 
- Public Member Functions inherited from ILIAS\Setup\CLI\BaseCommand
 __construct (callable $lazy_agent, ConfigReader $config_reader, array $preconditions)
 
 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 

Protected Member Functions

 printIntroMessage (IOWrapper $io)
 
 printOutroMessage (IOWrapper $io)
 
 buildEnvironment (Agent $agent, ?Config $config, IOWrapper $io)
 
 getObjective (Agent $agent, ?Config $config)
 
- Protected Member Functions inherited from ILIAS\Setup\CLI\BaseCommand
 getAgent ()
 
 shouldSayYes (InputInterface $input)
 
 printLicenseMessage (IOWrapper $io, InputInterface $input)
 
 printIntroMessage (IOWrapper $io)
 
 printOutroMessage (IOWrapper $io)
 
 readAgentConfig (Agent $agent, InputInterface $input)
 
 buildEnvironment (Agent $agent, ?Config $config, IOWrapper $io)
 
 getObjective (Agent $agent, ?Config $config)
 

Static Protected Attributes

static $defaultName = "reload-control-structure"
 
- Static Protected Attributes inherited from ILIAS\Setup\CLI\BaseCommand
static $defaultName = "install"
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Setup\CLI\BaseCommand
 $lazy_agent
 
 $agent
 
 $config_reader
 
 $preconditions
 var Objective[] More...
 

Detailed Description

Reload Control Structure command.

Definition at line 19 of file ReloadControlStructureCommand.php.

Member Function Documentation

◆ buildEnvironment()

ILIAS\Setup\CLI\ReloadControlStructureCommand::buildEnvironment ( Agent  $agent,
?Config  $config,
IOWrapper  $io 
)
protected

Definition at line 39 of file ReloadControlStructureCommand.php.

References ILIAS\Setup\Environment\RESOURCE_ACHIEVEMENT_TRACKER, ILIAS\Setup\Environment\RESOURCE_ADMIN_INTERACTION, and ILIAS\Setup\ArrayEnvironment\withConfigFor().

39  : Environment
40  {
41  $environment = new ArrayEnvironment([
43  // TODO: This needs to be implemented correctly...
44  Environment::RESOURCE_ACHIEVEMENT_TRACKER => new class implements AchievementTracker {
45  public function trackAchievementOf(Objective $objective) : void
46  {
47  }
48  public function isAchieved(Objective $objective) : bool
49  {
50  return false;
51  }
52  }
53  ]);
54 
55  if ($agent instanceof AgentCollection && $config) {
56  foreach ($config->getKeys() as $k) {
57  $environment = $environment->withConfigFor($k, $config->getConfig($k));
58  }
59  }
60 
61  return $environment;
62  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
+ Here is the call graph for this function:

◆ configure()

ILIAS\Setup\CLI\ReloadControlStructureCommand::configure ( )

Definition at line 23 of file ReloadControlStructureCommand.php.

24  {
25  parent::configure();
26  $this->setDescription("Reloads the control structure of the installation.");
27  }

◆ getObjective()

ILIAS\Setup\CLI\ReloadControlStructureCommand::getObjective ( Agent  $agent,
?Config  $config 
)
protected

Definition at line 64 of file ReloadControlStructureCommand.php.

64  : Objective
65  {
66  // ATTENTION: This is not how we want to do this in general during the
67  // setup, stuff should use Dependency Injection. However, since we
68  // currently won't get there with the control structure but still need
69  // a quick way to reload it, we do it anyway.
70  return new ObjectiveCollection(
71  "Install and update ILIAS",
72  false,
75  ),
77  );
78  }
Class ilCtrlStructureReader.

◆ printIntroMessage()

ILIAS\Setup\CLI\ReloadControlStructureCommand::printIntroMessage ( IOWrapper  $io)
protected

Definition at line 29 of file ReloadControlStructureCommand.php.

References ILIAS\Setup\CLI\IOWrapper\title().

30  {
31  $io->title("Reloading control structure of ILIAS");
32  }
+ Here is the call graph for this function:

◆ printOutroMessage()

ILIAS\Setup\CLI\ReloadControlStructureCommand::printOutroMessage ( IOWrapper  $io)
protected

Definition at line 34 of file ReloadControlStructureCommand.php.

References ILIAS\Setup\CLI\IOWrapper\success().

35  {
36  $io->success("Control structure reloaded. Thanks and have fun!");
37  }
+ Here is the call graph for this function:

Field Documentation

◆ $defaultName

ILIAS\Setup\CLI\ReloadControlStructureCommand::$defaultName = "reload-control-structure"
staticprotected

Definition at line 21 of file ReloadControlStructureCommand.php.


The documentation for this class was generated from the following file: