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