Skip to content

Commit

Permalink
chore: Bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Mar 8, 2024
1 parent 5aed91f commit c1f869a
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 c1f869a

Please sign in to comment.