| 1 | <?php |
||
| 10 | class Yarak |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Call a Yarak console command. |
||
| 14 | * |
||
| 15 | * @param string $command |
||
| 16 | * @param array $arguments Argument array. |
||
| 17 | * @param array $config Config values, for testing purposes. |
||
| 18 | */ |
||
| 19 | public static function call($command, array $arguments = [], array $config = []) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get an instance of Yarak kernel built with the given config. |
||
| 38 | * |
||
| 39 | * @param array $config |
||
| 40 | * |
||
| 41 | * @return Kernel |
||
| 42 | */ |
||
| 43 | protected static function getKernelWithConfig(array $config) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Resolve Yarak kernel from di. |
||
| 50 | * |
||
| 51 | * @throws FileNotFound |
||
| 52 | * |
||
| 53 | * @return Kernel |
||
| 54 | */ |
||
| 55 | protected static function getKernel() |
||
| 74 | } |
||
| 75 |