1 | <?php |
||
15 | class Application extends BaseApplication { |
||
16 | |||
17 | /** |
||
18 | * @param string $name |
||
19 | * @param string $version |
||
20 | */ |
||
21 | public function __construct($name, $version) { |
||
28 | |||
29 | /** |
||
30 | * Runs the current application. |
||
31 | * |
||
32 | * @param InputInterface $input An Input instance |
||
33 | * @param OutputInterface $output An Output instance |
||
34 | * |
||
35 | * @return int 0 if everything went fine, or an error code |
||
36 | * |
||
37 | * @throws \Exception When doRun returns Exception |
||
38 | */ |
||
39 | public function run(InputInterface $input = NULL, OutputInterface $output = NULL) { |
||
43 | |||
44 | /** |
||
45 | * Returns array of FQCN of classes found under src directory |
||
46 | * 1) named: *Command.php |
||
47 | * 2) implementing the CommandInterface |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function enumerateCommands() { |
||
68 | } |
||
69 | |||
70 |