| 1 | <?php |
||
| 10 | class Kernel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Application config. |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $config; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Construct. |
||
| 21 | * |
||
| 22 | * @param array $config |
||
| 23 | */ |
||
| 24 | public function __construct(array $config) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Handle an incoming console command. |
||
| 31 | */ |
||
| 32 | public function handle($input = null, $output = null) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Register all Yarak commands. |
||
| 51 | * |
||
| 52 | * @param Application $application |
||
| 53 | */ |
||
| 54 | protected function registerCommands(Application $application) |
||
| 59 | |||
| 60 | protected function validateCommand($application, $input) |
||
| 68 | } |
||
| 69 |