Skip to content

Commit

Permalink
Symfony 6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 17, 2022
1 parent e3f36c6 commit 47bde5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/AntispamField.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __construct($attributes = null)
*/
public function validate()
{
$session = System::getContainer()->get('session')->getBag('contao_frontend');
$session = System::getContainer()->get('request_stack')->getSession()->getBag('contao_frontend');
$sessionData = $session->get('rocksolid_antispam_' . $this->strId);

if (
Expand Down Expand Up @@ -182,7 +182,7 @@ public function generate()
protected function setSessionData()
{
System::getContainer()
->get('session')
->get('request_stack')->getSession()
->getBag('contao_frontend')
->set('rocksolid_antispam_' . $this->strId, array(
'names' => $this->names,
Expand Down

0 comments on commit 47bde5f

Please sign in to comment.