| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public static function call($command, array $arguments = [], array $config = []) |
||
| 20 | { |
||
| 21 | if (!empty($config)) { |
||
| 22 | $kernel = self::getKernelWithConfig($config); |
||
| 23 | } else { |
||
| 24 | $kernel = self::getKernel(); |
||
| 25 | } |
||
| 26 | |||
| 27 | $arguments = ['command' => $command] + $arguments; |
||
| 28 | |||
| 29 | $input = new ArrayInput($arguments); |
||
| 30 | |||
| 31 | $output = new NullOutput(); |
||
| 32 | |||
| 33 | $kernel->handle($input, $output); |
||
| 34 | } |
||
| 35 | |||
| 75 |