19declare(strict_types=1);
29use Symfony\Component\Console\Input\InputInterface;
30use Symfony\Component\Console\Output\OutputInterface;
31use Symfony\Component\Console\Input\InputOption;
46 $this->agent_finder = $agent_finder;
51 $this->setDescription(
"Build static artifacts from source");
52 $this->addOption(
"yes",
"y", InputOption::VALUE_NONE,
"Confirm every message of the setup.");
56 protected function execute(InputInterface $input, OutputInterface $output):
int
59 $io->printLicenseMessage();
60 $io->title(
"Building Static Artifacts for ILIAS");
64 $objective = $agent->getBuildObjective();
71 $this->achieveObjective($objective, $environment, $io);
72 $io->success(
"All static artifacts are build!");
74 $io->error(
"Aborting Installation, a necessary confirmation is missing:\n\n" .
$e->getRequestedConfirmation());
__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()