Neos\Flow\Mvc\Controller\AbstractController::redirectToUri PHP Метод

redirectToUri() защищенный Метод

Redirects to another URI
protected redirectToUri ( mixed $uri, integer $delay, integer $statusCode = 303 )
$uri mixed Either a string representation of a URI or a \Neos\Flow\Http\Uri object
$delay integer (optional) The delay in seconds. Default is no delay.
$statusCode integer (optional) The HTTP status code for the redirect. Default is "303 See Other"
    protected function redirectToUri($uri, $delay = 0, $statusCode = 303)
    {
        $escapedUri = htmlentities($uri, ENT_QUOTES, 'utf-8');
        $this->response->setContent('<html><head><meta http-equiv="refresh" content="' . intval($delay) . ';url=' . $escapedUri . '"/></head></html>');
        $this->response->setStatus($statusCode);
        if ($delay === 0) {
            $this->response->setHeader('Location', (string) $uri);
        }
        throw new StopActionException();
    }