| 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 FactoryDefault $di DI, may be necessary for php 5.6. |
||
| 18 | */ |
||
| 19 | public static function call($command, array $arguments = [], FactoryDefault $di = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Resolve Yarak kernel from di. |
||
| 34 | * |
||
| 35 | * @param FactoryDefault|null $di |
||
| 36 | * |
||
| 37 | * @throws FileNotFound |
||
| 38 | * |
||
| 39 | * @return Kernel |
||
| 40 | */ |
||
| 41 | protected static function getKernel($di) |
||
| 49 | |||
| 50 | protected static function getDI() |
||
| 71 | } |
||
| 72 |