예제 #1
0
 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;
     }
 }
예제 #2
0
파일: Shield.php 프로젝트: juniwalk/shield
 /**
  * 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);
 }