Skip to content

Commit dce1cbd

Browse files
committed
Removed unused ProblemDetailsResponseFactory check
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 6a69ccf commit dce1cbd

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/App/src/Factory/HandlerDelegatorFactory.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Api\App\Message;
1010
use Mezzio\Hal\HalResponseFactory;
1111
use Mezzio\Hal\ResourceGenerator;
12-
use Mezzio\ProblemDetails\ProblemDetailsResponseFactory;
1312
use Psr\Container\ContainerExceptionInterface;
1413
use Psr\Container\ContainerInterface;
1514
use 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

0 commit comments

Comments
 (0)