ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
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)
 

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 

Static Protected Attributes

static $defaultName = "build-artifacts"
 

Detailed Description

Installation command.

Definition at line 36 of file BuildArtifactsCommand.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 43 of file BuildArtifactsCommand.php.

References ILIAS\GlobalScreen\Provider\__construct().

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

Member Function Documentation

◆ configure()

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

Definition at line 49 of file BuildArtifactsCommand.php.

References ILIAS\Setup\CLI\configureCommandForPlugins().

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

◆ execute()

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

Definition at line 56 of file BuildArtifactsCommand.php.

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

56  : int
57  {
58  $io = new IOWrapper($input, $output);
59  $io->printLicenseMessage();
60  $io->title("Building Static Artifacts for ILIAS");
61 
62  $agent = $this->getRelevantAgent($input);
63 
64  $objective = $agent->getBuildArtifactObjective();
65 
66  $environment = new ArrayEnvironment([
68  ]);
69 
70  try {
71  $this->achieveObjective($objective, $environment, $io);
72  $io->success("All static artifacts are build!");
73  } catch (NoConfirmationException $e) {
74  $io->error("Aborting Installation, a necessary confirmation is missing:\n\n" . $e->getRequestedConfirmation());
75  }
76 
77  return 0;
78  }
getRelevantAgent(InputInterface $input)
Definition: HasAgent.php:40
+ Here is the call graph for this function:

Field Documentation

◆ $defaultName

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

Definition at line 41 of file BuildArtifactsCommand.php.


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