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