ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Setup\CLI\BuildCommand Class Reference

Installation command. More...

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

Public Member Functions

 __construct (AgentFinder $agent_finder)
 

Protected Member Functions

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

Static Protected Attributes

static $defaultName = "build"
 

Detailed Description

Installation command.

Definition at line 36 of file BuildCommand.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 43 of file BuildCommand.php.

44 {
46 $this->agent_finder = $agent_finder;
47 }
__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\BuildCommand::configure ( )
protected

Definition at line 49 of file BuildCommand.php.

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

References ILIAS\Setup\CLI\configureCommandForPlugins().

+ Here is the call graph for this function:

◆ execute()

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

Definition at line 56 of file BuildCommand.php.

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->getBuildObjective();
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

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\BuildCommand::$defaultName = "build"
staticprotected

Definition at line 41 of file BuildCommand.php.


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