1 | <?php |
||
21 | class Application extends BaseApplication implements ApplicationContract |
||
22 | { |
||
23 | use CapsuleManagerTrait; |
||
24 | |||
25 | /** |
||
26 | * The application event dispatcher. |
||
27 | * |
||
28 | * @var \Illuminate\Contracts\Events\Dispatcher |
||
29 | */ |
||
30 | protected $dispatcher; |
||
31 | |||
32 | /** |
||
33 | * The current running command. |
||
34 | * |
||
35 | * @var \Symfony\Component\Console\Command\Command |
||
36 | */ |
||
37 | protected $runningCommand; |
||
38 | |||
39 | /** |
||
40 | * Holds an instance of the bootstrapper factory. |
||
41 | * |
||
42 | * @var \LaravelZero\Framework\Bootstrappers\Factory |
||
43 | */ |
||
44 | protected $bootstrappersFactory; |
||
45 | |||
46 | /** |
||
47 | * Creates a new instance of the application. |
||
48 | * |
||
49 | * @param \Illuminate\Contracts\Container\Container|null $container |
||
50 | * @param \Illuminate\Contracts\Events\Dispatcher|null $dispatcher |
||
51 | * @param \LaravelZero\Framework\Bootstrappers\Factory|null $bootstrappersFactory |
||
52 | */ |
||
53 | public function __construct( |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | protected function bootstrap() |
||
77 | |||
78 | /** |
||
79 | * Gets the name of the command based on input. |
||
80 | * |
||
81 | * Proxies to the Laravel default command if there is no application |
||
82 | * default command. |
||
83 | * |
||
84 | * @param \Symfony\Component\Console\Input\InputInterface $input The input interface |
||
85 | * |
||
86 | * @return string|null |
||
87 | */ |
||
88 | protected function getCommandName(InputInterface $input) |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function getRunningCommand(): Command |
||
116 | } |
||
117 |