@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param int $status |
35 | 35 | * @param array $headers |
36 | 36 | * |
37 | - * @return ResponseContract |
|
37 | + * @return \Psr\Http\Message\ResponseInterface |
|
38 | 38 | */ |
39 | 39 | public function make($content = '', int $status = 200, array $headers = []) |
40 | 40 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * @param Response $response |
|
37 | + * @param ResponseInterface $response |
|
38 | 38 | */ |
39 | 39 | private function emitStatus(ResponseInterface $response) |
40 | 40 | { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | $this->emitter = $emitter ?: new SapiEmitter; |
34 | 34 | |
35 | - $this->setResolver(function ($class) { |
|
35 | + $this->setResolver(function($class) { |
|
36 | 36 | return new $class; |
37 | 37 | }); |
38 | 38 | } |
@@ -26,26 +26,26 @@ |
||
26 | 26 | public function getDefinitions() : array |
27 | 27 | { |
28 | 28 | return [ |
29 | - RequestInterface::class => function () { |
|
29 | + RequestInterface::class => function() { |
|
30 | 30 | return new Request( |
31 | 31 | ServerRequestFactory::fromGlobals() |
32 | 32 | ); |
33 | 33 | }, |
34 | - ResponseInterface::class => function () { |
|
34 | + ResponseInterface::class => function() { |
|
35 | 35 | return new Response( |
36 | 36 | new DiactorosResponse |
37 | 37 | ); |
38 | 38 | }, |
39 | - ResponseFactoryInterface::class => function () { |
|
39 | + ResponseFactoryInterface::class => function() { |
|
40 | 40 | return new ResponseFactory; |
41 | 41 | }, |
42 | - Psr7Request::class => function (Container $container) { |
|
42 | + Psr7Request::class => function(Container $container) { |
|
43 | 43 | return $container->get(RequestInterface::class)->toPsr7(); |
44 | 44 | }, |
45 | - Psr7Response::class => function (Container $container) { |
|
45 | + Psr7Response::class => function(Container $container) { |
|
46 | 46 | return $container->get(ResponseInterface::class)->toPsr7(); |
47 | 47 | }, |
48 | - DispatchRequest::class => function (Container $container) { |
|
48 | + DispatchRequest::class => function(Container $container) { |
|
49 | 49 | return new DispatchRequest( |
50 | 50 | $container->get(RouteDispatcher::class), |
51 | 51 | $container->get(ResponseFactoryInterface::class) |