ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Setup\CLI\BuildArtifactsCommand Class Reference

Installation command. More...

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

Public Member Functions

 __construct (AgentFinder $agent_finder)
 
 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 

Static Protected Attributes

static $defaultName = "build-artifacts"
 

Detailed Description

Installation command.

Definition at line 19 of file BuildArtifactsCommand.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Setup\CLI\BuildArtifactsCommand::__construct ( AgentFinder  $agent_finder)

Definition at line 26 of file BuildArtifactsCommand.php.

References ILIAS\GlobalScreen\Provider\__construct().

27  {
29  $this->agent_finder = $agent_finder;
30  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ configure()

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

Definition at line 32 of file BuildArtifactsCommand.php.

References ILIAS\Setup\CLI\configureCommandForPlugins().

33  {
34  $this->setDescription("Build static artifacts from source");
35  $this->addOption("yes", "y", InputOption::VALUE_NONE, "Confirm every message of the setup.");
37  }
configureCommandForPlugins()
Definition: HasAgent.php:21
+ Here is the call graph for this function:

◆ execute()

ILIAS\Setup\CLI\BuildArtifactsCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)

Definition at line 39 of file BuildArtifactsCommand.php.

References Vendor\Package\$e, ILIAS\Setup\CLI\getRelevantAgent(), ILIAS\Setup\NoConfirmationException\getRequestedConfirmation(), and ILIAS\Setup\Environment\RESOURCE_ADMIN_INTERACTION.

40  {
41  $io = new IOWrapper($input, $output);
42  $io->printLicenseMessage();
43  $io->title("Building Static Artifacts for ILIAS");
44 
45  $agent = $this->getRelevantAgent($input);
46 
47  $objective = $agent->getBuildArtifactObjective();
48 
49  $environment = new ArrayEnvironment([
51  ]);
52 
53  try {
54  $this->achieveObjective($objective, $environment, $io);
55  $io->success("All static artifacts are build!");
56  } catch (NoConfirmationException $e) {
57  $io->error("Aborting Installation, a necessary confirmation is missing:\n\n" . $e->getRequestedConfirmation());
58  }
59  }
getRelevantAgent(InputInterface $input)
Definition: HasAgent.php:28
+ Here is the call graph for this function:

Field Documentation

◆ $defaultName

ILIAS\Setup\CLI\BuildArtifactsCommand::$defaultName = "build-artifacts"
staticprotected

Definition at line 24 of file BuildArtifactsCommand.php.


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