14use Symfony\Component\Console\Input\InputInterface;
15use Symfony\Component\Console\Output\OutputInterface;
16use Symfony\Component\Console\Input\InputOption;
29 ->setDescription(
"Updates an existing ILIAS installation")
30 ->addOption(
"ignore-db-update-messages",
null, InputOption::VALUE_NONE,
"Ignore messages from the database update steps.");
35 $io->
title(
"Updating ILIAS");
40 $io->
success(
"Update complete. Thanks and have fun!");
49 public function trackAchievementOf(
Objective $objective) :
void
52 public function isAchieved(
Objective $objective) :
bool
60 foreach (
$config->getKeys() as $k) {
68 public function execute(InputInterface $input, OutputInterface $output)
72 if ($input->hasOption(
"ignore-db-update-messages") && $input->getOption(
"ignore-db-update-messages")) {
73 define(
"ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES",
true);
75 return parent::execute($input, $output);
An exception for terminatinating execution or to throw for unit testing.
An agent that is just a collection of some other agents.
withConfigFor(string $component, $config)
Stores a config for some component in the environment.RuntimeException if this config is already in t...
Wrapper around symfonies input and output facilities to provide just the functionality required for t...
getObjective(Agent $agent, ?Config $config)
printIntroMessage(IOWrapper $io)
execute(InputInterface $input, OutputInterface $output)
printOutroMessage(IOWrapper $io)
buildEnvironment(Agent $agent, ?Config $config, IOWrapper $io)
A objective collection is a objective that is achieved once all subobjectives are achieved.
Tracks the achievement of objectives.
A agent is some component that performs part of the setup process.
A configuration for the setup.
An environment holds resources to be used in the setup process.
const RESOURCE_ACHIEVEMENT_TRACKER
const RESOURCE_ADMIN_INTERACTION
An objective is a desired state of the system that is supposed to be created by the setup.