@param array $redirectData

@return void
329051
protected function assertValid(array $redirectData)
    {
        if (!array_key_exists('redirectUrl', $redirectData)) {
            throw new RedirectException(
                'Missing required data: redirectUrl'
            );
        }
        if (!array_key_exists('requestUrl', $redirectData)) {
            throw new RedirectException(
                'Missing required data: requestUrl'
            );
        }
        if (!array_key_exists('siteId', $redirectData)) {
            throw new RedirectException(
                'Missing required data: siteId'
            );
        }
    }
49659
protected function _addRedirectRoute($routeData)
    {
        /** @var Route $defaultRoute */
        $defaultRoute = $this->Routes->getDefaultRoute($routeData['model'], $routeData['foreign_key'], $routeData['language_id']);
        /** @var Route $redirectRoute */
        $redirectRoute = $this->Routes->newEntity($routeData);

        if (!empty($defaultRoute)) {
            $redirectRoute->set('redirect_to', $defaultRoute->id);
            $redirectRoute->set('status_code', 301);
            if ($this->Routes->save($redirectRoute)) {
                $this->Flash->success(__d('wasabi_core', 'New redirect URL <strong>{0}</strong> has been added.', $redirectRoute->url), 'routes');
                $this->request->data = [];
            } else {
                $this->Flash->error($this->formErrorMessage, 'routes');
                $redirectRoute->set('type', RouteTypes::TYPE_REDIRECT_ROUTE);
            }
        } else {
            $this->Flash->error(__d('wasabi_core', 'Please create a default route first.'), 'routes');
            $redirectRoute->set('type', RouteTypes::TYPE_REDIRECT_ROUTE);
        }

        return $redirectRoute;
    }
1232721
protected function incrementHitCount(array $redirectRecord)
    {
        // Track the hit if not disabled
        if (!GeneralUtility::makeInstance(Features::class)->isFeatureEnabled('redirects.hitCount') || $redirectRecord['disable_hitcount']) {
            return;
        }
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
            ->getQueryBuilderForTable('sys_redirect');
        $queryBuilder
            ->update('sys_redirect')
            ->where(
                $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($redirectRecord['uid'], \PDO::PARAM_INT))
            )
            ->set('hitcount', $queryBuilder->quoteIdentifier('hitcount') . '+1', false)
            ->set('lasthiton', $GLOBALS['EXEC_TIME'])
            ->execute();
    }
79154
static function Redirect301($target, $noExit = false)
    {
        self::Redirect($target, self::REDIRECT_HEADER_301, $noExit);
    }
1094294
protected function mergeRedirect()
    {
        if (!empty($this->redirect)) {
            $this->data = array_merge_recursive($this->data, array('redirect_uri' => $this->redirect));
        }
    }
734117
public function execDelete($redirectAction = false)
    {
        // database translations
        $this->loadTranslations('database', sprintf('private/global/locales/%s/database.ini', LANGUAGE));
        //validate and extract input
        $input = $this->processSaveInput(filter_input_array(INPUT_POST, $this->configuration['subjects'][$this->name]['CRUD']['inputFields']));
        if($input) {
            //extract primary key value
            $primaryKeyValue = $this->extractPrimaryKeyValue($input, 'a');
            try{
                //ORM insert
                $this->delete($primaryKeyValue);
                $this->messages->save('cookies','success',sprintf($this->translations[$this->name]['CRUD']['delete-success'], $this->translations[$this->name]['singular']));
            } catch(\PDOException $exception) {
                $this->messages->save('cookies', 'danger', $this->handleError($exception));
                $redirectAction = 'deleteForm/' . $this->extractPrimaryKeyValue($input, 's');
            }
        }
        //redirect
        $redirectAction = $redirectAction ? $redirectAction : 'list';
        $this->httpResponse = $this->httpResponse->withHeader('Location', $redirectAction);
    }
233279
public static function setContextData(array $contextData = [])
    {
        $existContext = [];
        $coroutineId = self::getCoroutineId();
        if (isset(self::$context[$coroutineId][self::DATA_KEY])) {
            $existContext = self::$context[$coroutineId][self::DATA_KEY];
        }
        self::$context[$coroutineId][self::DATA_KEY] = ArrayHelper::merge($contextData, $existContext);
    }
64345
public function setSuccessRedirect(\Zend\Mvc\Controller\Plugin\Redirect $redirect, $route, $params = []) {
		$this->redirect = $redirect;
		$this->redirectRoute = $route;
		$this->params = $params;
	}
382483
public function setRedirectUrl($redirect = null, $key = null) {
		if (empty($redirect)) {
			$redirect = $this->_controller->request->referer(true);
		} elseif ($redirect === true) {
			$redirect = $this->_controller->request->here(true);
		}
		if (empty($redirect) || $this->_controller->request->is('popup') ||
			$this->_controller->request->is('print')) {
			return false;
		}
		$cacheKey = $this->_getSessionKeyRedirect($key);
		$data = CakeSession::read($cacheKey);
		if (!empty($data) && (md5((string)$data) === md5((string)$redirect))) {
			return false;
		}

		return CakeSession::write($cacheKey, $redirect);
	}
284696
public function setTemplateData(array $templateData)
    {
        if (!isset($this->templateData)) {
            $this->templateData = [];
        }

        $this->templateData = array_merge($this->templateData, $templateData);

        return $this;
    }
645579
public function redirect($url = null, $params = array()) {
		$this->component->redirect(isset($url) ? $url : $this->redirectUrl, true, $params);
	}
503769
public function render(ViewData $data): void
    {
        $modelData = $data->model()->data();
        $templatePath = $data->templatePath();

        if (!$modelData) {
            return;
        }

        $this
            ->twigLoad($templatePath)
            ->display($modelData);
    }
293813
public function sendData($data)
    {
        $response = $this->gocardless->redirectFlows()->create(['params' => $data]);

        return $this->response = new RedirectAuthoriseResponse($this, $response);
    }
136833
public function create(Redirect &$redirect)
    {
        $endpoint = '/admin/redirects.json';
        $data = $redirect->exportData();
        $response = $this->request(
            $endpoint, "POST", array(
            'redirect' => $data
            )
        );
        $redirect->setData($response['redirect']);
    }
470727
public function handler(&$irc, &$ircdata)
    {
        $irc->log(SMARTIRC_DEBUG_ACTIONHANDLER,
            'DEBUG_ACTIONHANDLER: listenfor handler called', __FILE__, __LINE__
        );
        $this->result[] = $ircdata;
        $irc->disconnect();
    }
1360602
public function setRedirect($redirect)
    {
        /**
         * Changing the redirect also changes the secure[data] parameter. Since we
         * base our signature off of this it cannot be changed once the signature
         * has been generated.
         */
        if (isset($this->requestSignature)) {
            throw new BadMethodCallException('The signature for this request has already been generated.');
        }

        $this->redirect = $redirect;
        $this->mergeRedirect();
    }
96037
public function initialize(array $initialData = []) : void
    {
        foreach ($initialData as $key => $value) {
            $this[$key] = $value;
        }
    }