| Conditions | 3 |
| Paths | 3 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | // Not needed by Dingo |
||
| 18 | return false; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function callRoute($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null) |
||
| 25 | { |
||
| 26 | $dispatcher = app('Dingo\Api\Dispatcher')->raw(); |
||
| 27 | |||
| 28 | collect($server)->map(function ($key, $value) use ($dispatcher) { |
||
| 29 | $dispatcher->header($value, $key); |
||
| 30 | }); |
||
| 31 | |||
| 32 | return call_user_func_array([$dispatcher, strtolower($method)], [$uri]); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getDomain($route) |
||
| 39 | { |
||
| 40 | return $route->domain(); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 59 |