Skip to content

Commit

Permalink
Presenter: life-time of flash message is always 30sec
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 9, 2020
1 parent 1a873c6 commit 9d529b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/UI/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function run(Application\Request $request): Application\IResponse
}

if ($this->hasFlashSession()) {
$this->getFlashSession()->setExpiration($this->response instanceof Responses\RedirectResponse ? '+ 30 seconds' : '+ 3 seconds');
$this->getFlashSession()->setExpiration('30 seconds');
}

if (!$this->response) {
Expand Down

0 comments on commit 9d529b4

Please sign in to comment.