示例#1
0
 public function modifyResponse(ResponseInterface $response)
 {
     if ($this->redirectUrl != null) {
         $response = Responses::withTemporaryRedirect($response, $this->redirectUrl);
     }
     return $response;
 }
示例#2
0
 public function modifyResponse(ResponseInterface $response)
 {
     if ($this->redirectLink !== null) {
         return Responses::withTemporaryRedirect($response, $this->redirectLink);
     }
     return $response;
 }