Correct instanceof condition.
This commit is contained in:
parent
8a01dd5cff
commit
b8df1620ac
@ -147,7 +147,7 @@ class ProfilerController extends ContainerAware
|
||||
{
|
||||
$request = $this->container->get('request');
|
||||
|
||||
if (null !== $session = $request->getSession() && $session instanceof AutoExpireFlashBag) {
|
||||
if (null !== $session = $request->getSession() && $session->getFlashBag() instanceof AutoExpireFlashBag) {
|
||||
// keep current flashes for one more request if using AutoExpireFlashBag
|
||||
$session->getFlashBag()->setAll($session->getFlashBag()->peekAll());
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ class WebDebugToolbarListener
|
||||
|
||||
if ($response->headers->has('X-Debug-Token') && $response->isRedirect() && $this->interceptRedirects) {
|
||||
$session = $request->getSession();
|
||||
if ($session instanceof AutoExpireFlashBag) {
|
||||
if ($session->getFlashBag() instanceof AutoExpireFlashBag) {
|
||||
// keep current flashes for one more request if using AutoExpireFlashBag
|
||||
$session->getFlashBag()->setAll($session->getFlashBag()->peekAll());
|
||||
}
|
||||
|
Reference in New Issue
Block a user