ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
App.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup\CLI;
22
23use Symfony\Component\Console\Application;
27
33class 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:34
__construct(Command ... $commands)
Definition: App.php:37
enter()
Pass program execution to this entry point.
Definition: App.php:51
$c
Definition: deliver.php:25
An entrypoint is where the programm execution starts.
Definition: EntryPoint.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...