File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use Api \App \Message ;
1010use Mezzio \Hal \HalResponseFactory ;
1111use Mezzio \Hal \ResourceGenerator ;
12- use Mezzio \ProblemDetails \ProblemDetailsResponseFactory ;
1312use Psr \Container \ContainerExceptionInterface ;
1413use Psr \Container \ContainerInterface ;
1514use Psr \Container \NotFoundExceptionInterface ;
@@ -34,15 +33,10 @@ public function __invoke(
3433 if (! $ container ->has (HalResponseFactory::class)) {
3534 throw new RuntimeException (sprintf (Message::SERVICE_NOT_FOUND , HalResponseFactory::class));
3635 }
37-
3836 if (! $ container ->has (ResourceGenerator::class)) {
3937 throw new RuntimeException (sprintf (Message::SERVICE_NOT_FOUND , ResourceGenerator::class));
4038 }
4139
42- if (! $ container ->has (ProblemDetailsResponseFactory::class)) {
43- throw new RuntimeException (sprintf (Message::SERVICE_NOT_FOUND , ProblemDetailsResponseFactory::class));
44- }
45-
4640 $ handler = $ callback ();
4741 assert ($ handler instanceof AbstractHandler);
4842
You can’t perform that action at this time.
0 commit comments