11use Symfony\Component\Console\Command\Command;
12use Symfony\Component\Console\Input\InputInterface;
13use Symfony\Component\Console\Output\OutputInterface;
14use Symfony\Component\Console\Input\InputOption;
29 $this->agent_finder = $agent_finder;
34 $this->setDescription(
"Build static artifacts from source");
35 $this->addOption(
"yes",
"y", InputOption::VALUE_NONE,
"Confirm every message of the setup.");
39 public function execute(InputInterface $input, OutputInterface $output)
42 $io->printLicenseMessage();
43 $io->title(
"Building Static Artifacts for ILIAS");
47 $objective = $agent->getBuildArtifactObjective();
54 $this->achieveObjective($objective, $environment, $io);
55 $io->success(
"All static artifacts are build!");
57 $io->error(
"Aborting Installation, a necessary confirmation is missing:\n\n" .
$e->getRequestedConfirmation());
An exception for terminatinating execution or to throw for unit testing.
__construct(AgentFinder $agent_finder)
execute(InputInterface $input, OutputInterface $output)
Wrapper around symfonies input and output facilities to provide just the functionality required for t...
Signals that a necessary confirmation from the admin is missing.
An environment holds resources to be used in the setup process.
const RESOURCE_ADMIN_INTERACTION
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait HasAgent
Add this to an Command that has an agent.
getRelevantAgent(InputInterface $input)
configureCommandForPlugins()