Преглед на файлове

Set the request object to the Admin class

Thomas преди 14 години
родител
ревизия
3c2cf66519
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      Controller/CoreController.php

+ 2 - 4
Controller/CoreController.php

@@ -58,10 +58,8 @@ class CoreController extends Controller
            ->get('sonata_admin.admin.pool')
            ->getInstance($code);
 
-        if ($this->container->get('request')->get('uniqid')) {
-            $admin->setUniqid($this->container->get('request')->get('uniqid'));
-        }
-
+        $admin->setRequest($this->container->get('request'));
+        
         return $admin;
     }