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 11a5802 commit 0fac619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public function onloadCallback($dc)
}

/** @var SessionInterface $objSession */
$objSession = System::getContainer()->get('session');
$objSession = System::getContainer()->get('request_stack')->getSession();

// Check current action
switch (Input::get('act')) {
Expand Down Expand Up @@ -426,7 +426,7 @@ public function oncreateCallback($table, $insertId, $row, $dc)
}

/** @var AttributeBagInterface $objSessionBag */
$objSessionBag = System::getContainer()->get('session')->getBag('contao_backend');
$objSessionBag = System::getContainer()->get('request_stack')->getSession()->getBag('contao_backend');

$arrNew = $objSessionBag->get('new_records');

Expand Down Expand Up @@ -589,7 +589,7 @@ public function slideOnloadCallback($dc)
->execute($id);

/** @var SessionInterface $objSession */
$objSession = System::getContainer()->get('session');
$objSession = System::getContainer()->get('request_stack')->getSession();

$session = $objSession->all();
$session['CURRENT']['IDS'] = array_intersect((array) $session['CURRENT']['IDS'], $objArchive->fetchEach('id'));
Expand Down Expand Up @@ -683,7 +683,7 @@ private function contentCheckPermission($dc)
->execute($dc->currentPid);

/** @var SessionInterface $objSession */
$objSession = System::getContainer()->get('session');
$objSession = System::getContainer()->get('request_stack')->getSession();

$session = $objSession->all();
$session['CURRENT']['IDS'] = array_intersect((array) $session['CURRENT']['IDS'], $objCes->fetchEach('id'));
Expand Down

0 comments on commit 0fac619

Please sign in to comment.