/** * Api handler. * * @param \Notadd\Foundation\Attachment\Handlers\StorageSetHandler $handler * * @return \Notadd\Foundation\Passport\Responses\ApiResponse * @throws \Exception */ public function handle(StorageSetHandler $handler) { $response = $handler->toResponse(); return $response->generateHttpResponse(); }
/** * @return \Psr\Http\Message\ResponseInterface|\Zend\Diactoros\Response */ public function handle() { $handler = new StorageSetHandler($this->container, $this->settings); $response = $handler->toResponse($this->request); return $response->generateHttpResponse(); }