fix indention
This commit is contained in:
parent
1002281dae
commit
0252d39bb6
1 changed files with 6 additions and 6 deletions
|
@ -52,9 +52,9 @@ class Dispatcher {
|
||||||
* @param IRequest $request the incoming request
|
* @param IRequest $request the incoming request
|
||||||
*/
|
*/
|
||||||
public function __construct(Http $protocol,
|
public function __construct(Http $protocol,
|
||||||
MiddlewareDispatcher $middlewareDispatcher,
|
MiddlewareDispatcher $middlewareDispatcher,
|
||||||
ControllerMethodReflector $reflector,
|
ControllerMethodReflector $reflector,
|
||||||
IRequest $request) {
|
IRequest $request) {
|
||||||
$this->protocol = $protocol;
|
$this->protocol = $protocol;
|
||||||
$this->middlewareDispatcher = $middlewareDispatcher;
|
$this->middlewareDispatcher = $middlewareDispatcher;
|
||||||
$this->reflector = $reflector;
|
$this->reflector = $reflector;
|
||||||
|
@ -162,9 +162,9 @@ class Dispatcher {
|
||||||
|
|
||||||
// if none is given try the first Accept header
|
// if none is given try the first Accept header
|
||||||
if($format === null) {
|
if($format === null) {
|
||||||
$headers = $this->request->getHeader('Accept');
|
$headers = $this->request->getHeader('Accept');
|
||||||
$format = $controller->getResponderByHTTPHeader($headers);
|
$format = $controller->getResponderByHTTPHeader($headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = $controller->buildResponse($response, $format);
|
$response = $controller->buildResponse($response, $format);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue