diff --git a/src/App/src/Factory/HandlerDelegatorFactory.php b/src/App/src/Factory/HandlerDelegatorFactory.php index ad0ca6b..7640842 100644 --- a/src/App/src/Factory/HandlerDelegatorFactory.php +++ b/src/App/src/Factory/HandlerDelegatorFactory.php @@ -9,7 +9,6 @@ use Api\App\Message; use Mezzio\Hal\HalResponseFactory; use Mezzio\Hal\ResourceGenerator; -use Mezzio\ProblemDetails\ProblemDetailsResponseFactory; use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; use Psr\Container\NotFoundExceptionInterface; @@ -34,15 +33,10 @@ public function __invoke( if (! $container->has(HalResponseFactory::class)) { throw new RuntimeException(sprintf(Message::SERVICE_NOT_FOUND, HalResponseFactory::class)); } - if (! $container->has(ResourceGenerator::class)) { throw new RuntimeException(sprintf(Message::SERVICE_NOT_FOUND, ResourceGenerator::class)); } - if (! $container->has(ProblemDetailsResponseFactory::class)) { - throw new RuntimeException(sprintf(Message::SERVICE_NOT_FOUND, ProblemDetailsResponseFactory::class)); - } - $handler = $callback(); assert($handler instanceof AbstractHandler);