1 | <?php |
||
13 | class Application extends LaravelApplication |
||
14 | { |
||
15 | /** |
||
16 | * Create a new console application. |
||
17 | * |
||
18 | * @param string $name |
||
19 | * @param string $version |
||
20 | */ |
||
21 | 3 | public function __construct($name = 'Console Application', $version = '1.0.0') |
|
33 | |||
34 | /** |
||
35 | * Register a Closure based command. |
||
36 | * |
||
37 | * @param string $signature |
||
38 | * @param \Closure $callback |
||
39 | * @param string $description |
||
40 | * @return \ElfSundae\Console\ClosureCommand |
||
41 | */ |
||
42 | 1 | public function command($signature, Closure $callback, $description = null) |
|
48 | |||
49 | /** |
||
50 | * Run the current application as a single command application. |
||
51 | * |
||
52 | * @param \Symfony\Component\Console\Input\InputInterface|null $input |
||
53 | * @param \Symfony\Component\Console\Output\OutputInterface|null $output |
||
54 | * @return int |
||
55 | */ |
||
56 | public function runAsSingle(InputInterface $input = null, OutputInterface $output = null) |
||
64 | } |
||
65 |