コード例 #1
0
ファイル: OnRequest.php プロジェクト: lovec/db-changelog
 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);
 }