ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
App.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Setup\CLI;
22 
27 
33 class App extends Application implements EntryPoint
34 {
35  public const NAME = "The ILIAS Setup";
36 
37  public function __construct(
38  Command ...$commands
39  ) {
40  parent::__construct(self::NAME);
41  foreach ($commands as $c) {
42  $this->add($c);
43  }
44  }
45 
46  public function getName(): string
47  {
48  return self::NAME;
49  }
50 
51  public function enter(): int
52  {
53  return $this->run();
54  }
55 }
The ILIAS-setup-console-application.
Definition: App.php:33
add()
description: > Example for rendring an add glyph.
Definition: add.php:41
$c
Definition: deliver.php:25
__construct(Command ... $commands)
Definition: App.php:37
An entrypoint is where the programm execution starts.
Definition: EntryPoint.php:27
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
enter()
Pass program execution to this entry point.
Definition: App.php:51