ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
App.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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:25
$c
Definition: deliver.php:9
__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