コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * @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();
 }