@@ -61,7 +61,7 @@ |
||
61 | 61 | /** |
62 | 62 | * Determines the content type of the data the client has sent (i.e. in a POST request) |
63 | 63 | * |
64 | - * @param string|array|null $type Can be null (or no parameter), a string type name, or an array of types |
|
64 | + * @param string $type Can be null (or no parameter), a string type name, or an array of types |
|
65 | 65 | * @return mixed If a single type is supplied a boolean will be returned. If no type is provided |
66 | 66 | * The mapped value of CONTENT_TYPE will be returned. If an array is supplied the first type |
67 | 67 | * in the request content type will be returned. |
@@ -2,16 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace CakeDC\Api\Middleware; |
4 | 4 | |
5 | -use CakeDC\Api\Service\ConfigReader; |
|
6 | -use CakeDC\Api\Service\ServiceRegistry; |
|
7 | -use Cake\Core\Configure; |
|
8 | 5 | use Cake\Http\RequestTransformer; |
9 | 6 | use Cake\Http\ResponseTransformer; |
10 | -use Cake\Routing\Exception\RedirectException; |
|
11 | -use Cake\Routing\Router; |
|
12 | 7 | use Psr\Http\Message\ResponseInterface; |
13 | 8 | use Psr\Http\Message\ServerRequestInterface; |
14 | -use Zend\Diactoros\Response\RedirectResponse; |
|
15 | 9 | |
16 | 10 | /** |
17 | 11 | * Applies routing rules to the request and creates the controller |