File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2424use MaplePHP \Http \Interfaces \PathInterface ;
2525use MaplePHP \Http \Stream ;
2626use Psr \Container \ContainerInterface ;
27+ use Psr \Http \Message \RequestInterface ;
2728use Psr \Http \Message \ResponseInterface ;
2829use Psr \Http \Message \ServerRequestInterface ;
2930use Psr \Http \Message \StreamInterface ;
@@ -136,11 +137,11 @@ protected function initRequestHandler(
136137 {
137138
138139 $ this ->bindInterfaces ([
139- " ContainerInterface " => $ this ->container ,
140- " RequestInterface " => $ request ,
141- " ServerRequestInterface " => $ request ,
142- " StreamInterface " => $ stream ,
143- " PathInterface " => fn () => $ path
140+ ContainerInterface::class => $ this ->container ,
141+ RequestInterface::class => $ request ,
142+ ServerRequestInterface::class => $ request ,
143+ StreamInterface::class => $ stream ,
144+ PathInterface::class => $ path
144145 ]);
145146
146147 $ middlewares = array_merge ($ this ->userMiddlewares , $ middlewares );
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
2828 $ response = $ this ->factory ->createResponse ();
2929
3030 $ this ->appendInterfaces ([
31- " ResponseInterface " => $ response ,
31+ ResponseInterface::class => $ response ,
3232 ]);
3333
3434 $ controller = $ this ->controller ;
You can’t perform that action at this time.
0 commit comments