blob: 842f5a6a954715033bfa0975a2e65316bca8024f [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Console;
4
5interface Kernel
6{
7 /**
8 * Bootstrap the application for artisan commands.
9 *
10 * @return void
11 */
12 public function bootstrap();
13
14 /**
15 * Handle an incoming console command.
16 *
17 * @param \Symfony\Component\Console\Input\InputInterface $input
18 * @param \Symfony\Component\Console\Output\OutputInterface|null $output
19 * @return int
20 */
21 public function handle($input, $output = null);
22
23 /**
24 * Run an Artisan console command by name.
25 *
26 * @param string $command
27 * @param array $parameters
28 * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
29 * @return int
30 */
31 public function call($command, array $parameters = [], $outputBuffer = null);
32
33 /**
34 * Queue an Artisan console command by name.
35 *
36 * @param string $command
37 * @param array $parameters
38 * @return \Illuminate\Foundation\Bus\PendingDispatch
39 */
40 public function queue($command, array $parameters = []);
41
42 /**
43 * Get all of the commands registered with the console.
44 *
45 * @return array
46 */
47 public function all();
48
49 /**
50 * Get the output for the last run command.
51 *
52 * @return string
53 */
54 public function output();
55
56 /**
57 * Terminate the application.
58 *
59 * @param \Symfony\Component\Console\Input\InputInterface $input
60 * @param int $status
61 * @return void
62 */
63 public function terminate($input, $status);
64}