deleteShortUrlService = $deleteShortUrlService; } public function handle(ServerRequestInterface $request): ResponseInterface { $identifier = ShortUrlIdentifier::fromApiRequest($request); $apiKey = AuthenticationMiddleware::apiKeyFromRequest($request); $this->deleteShortUrlService->deleteByShortCode($identifier, false, $apiKey); return new EmptyResponse(); } }