Skip to content

Commit

Permalink
Merge tag v2.2.14 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Mar 20, 2024
1 parent a9775d1 commit 705daf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AjaxControllers/AjaxSessionMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\FlashBagAwareSessionInterface;
use Symfony\Component\HttpFoundation\Session\Session;

class AjaxSessionMessages extends AbstractAjaxController
{
Expand All @@ -22,7 +22,7 @@ public function getMessagesAction(Request $request): JsonResponse

if ($request->hasPreviousSession()) {
$session = $request->getSession();
if ($session instanceof FlashBagAwareSessionInterface) {
if ($session instanceof Session) {
$responseArray['messages'] = $session->getFlashBag()->all();
}
}
Expand Down

0 comments on commit 705daf2

Please sign in to comment.