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