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