فهرست منبع

[WebProfilerBundle] fixed WDT controller to keep the current flashes

Fabien Potencier 14 سال پیش
والد
کامیت
92acd46ede
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

+ 5 - 0
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

@@ -125,6 +125,11 @@ class ProfilerController extends ContainerAware
      */
     public function toolbarAction($token, $position = null)
     {
+        $request = $this->container->get('request');
+
+        // keep current flashes for one more request
+        $request->setFlashes($request->getFlashes());
+
         if (null === $token) {
             return new Response();
         }