1 | <?php |
||
11 | class Kernel |
||
12 | { |
||
13 | /** |
||
14 | * Application config. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | private $config; |
||
19 | |||
20 | /** |
||
21 | * Construct. |
||
22 | * |
||
23 | * @param array $config |
||
24 | */ |
||
25 | public function __construct(array $config) |
||
29 | |||
30 | /** |
||
31 | * Handle an incoming console command. |
||
32 | */ |
||
33 | public function handle($input = null, $output = null) |
||
49 | |||
50 | /** |
||
51 | * Register all Yarak commands. |
||
52 | * |
||
53 | * @param Application $application |
||
54 | */ |
||
55 | protected function registerCommands(Application $application) |
||
60 | |||
61 | /** |
||
62 | * Validate the given command. |
||
63 | * |
||
64 | * @param Application $application |
||
65 | * @param InputInterface $input |
||
66 | * |
||
67 | * @throws InvalidInput |
||
68 | */ |
||
69 | protected function validateCommand(Application $application, InputInterface $input) |
||
77 | } |
||
78 |