getAttribute('protocol'); try { return ProtocolEnum::fromString($protocol); } catch (\InvalidArgumentException $e) { Logger::error($e->getMessage()); return ProtocolEnum::HTTP; } } /** * @param ServerRequest $request * @return ResponseInterface * @throws NotFoundException */ public function get(ServerRequest $request): ResponseInterface { throw new NotFoundException("not found"); } /** * @throws NotFoundException */ public function post(ServerRequest $request): ResponseInterface { throw new NotFoundException("not found"); } /** * @throws NotFoundException */ public function delete(ServerRequest $request): ResponseInterface { throw new NotFoundException("not found"); } /** * @throws NotFoundException */ public function patch(ServerRequest $request): ResponseInterface { throw new NotFoundException("not found"); } }