public function onPresenter(Application $application, IPresenter $presenter) { if (Debugger::$productionMode === FALSE && $this->changelogManager->haveFilesChanged() && $this->changelogManager->importNewChangelogData() && !$presenter instanceof ChangelogPresenter) { $this->httpResponse->redirect('/db-changelog'); exit; } }
/** * Action - Allows to redirect to a Url. * @param string $uri Endpoint URI */ protected function actionRedirect($uri) { // Redirect to giben Uri address $this->response->redirect($uri); }