Skip to content

Commit

Permalink
Merge 4aa40e6 into 454276d
Browse files Browse the repository at this point in the history
  • Loading branch information
XCame committed Jun 9, 2020
2 parents 454276d + 4aa40e6 commit 3059255
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/PostRedirectGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,25 @@ public function __invoke($redirect = null, $redirectToUrl = false)
return false;
}

/**
*
* @return string
*/
public function getContainerIdentifier()
{
$controller = $this->getController();
$request = $controller->getRequest();

return md5($request->getUri());
}

/**
* @return Container
*/
public function getSessionContainer()
{
if (! $this->sessionContainer) {
$this->sessionContainer = new Container('prg_post1');
$this->sessionContainer = new Container($this->getContainerIdentifier());
}
return $this->sessionContainer;
}
Expand Down

0 comments on commit 3059255

Please sign in to comment.