示例#1
0
 /**
  * TODO: Method  Description
  *
  * @param \Notadd\Foundation\Setting\Handlers\AllHandler $handler
  *
  * @return \Notadd\Foundation\Passport\Responses\ApiResponse
  * @throws \Exception
  */
 public function all(AllHandler $handler)
 {
     $response = $handler->toResponse();
     return $response->generateHttpResponse();
 }
示例#2
0
 /**
  * @return \Psr\Http\Message\ResponseInterface|\Zend\Diactoros\Response
  */
 public function all()
 {
     $handler = new AllHandler($this->container, $this->settings);
     $response = $handler->toResponse();
     return $response->generateHttpResponse();
 }