1 | <?php |
||
11 | class Yarak |
||
12 | { |
||
13 | /** |
||
14 | * Call a Yarak console command. |
||
15 | * |
||
16 | * @param string $command |
||
17 | * @param array $arguments Argument array. |
||
18 | * @param FactoryDefault $di DI, may be necessary for php 5.6. |
||
19 | */ |
||
20 | public static function call($command, array $arguments = [], DiInterface $di = null) |
||
32 | |||
33 | /** |
||
34 | * Resolve Yarak kernel from di. |
||
35 | * |
||
36 | * @param FactoryDefault|null $di |
||
37 | * |
||
38 | * @return Kernel |
||
39 | */ |
||
40 | protected static function getKernel($di) |
||
48 | |||
49 | /** |
||
50 | * Get a fresh DI instance. |
||
51 | * |
||
52 | * @throws FileNotFound |
||
53 | * |
||
54 | * @return FactoryDefault |
||
55 | */ |
||
56 | protected static function getDI() |
||
77 | } |
||
78 |