ILIAS  release_7 Revision v7.30-3-g800a261c036
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.

27 {
29 $this->agent_finder = $agent_finder;
30 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ 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.

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

References ILIAS\Setup\CLI\configureCommandForPlugins().

+ 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.

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

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

+ 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: