Przeglądaj źródła

Do not use autowire, for old Symfony versions

tags/3.4.0
Steevan BARBOYON 8 lat temu
rodzic
commit
af2bc38ee9

+ 2
- 1
SmallOverloadBundle/Controller/SmallOverloadController.php Wyświetl plik

12
 class SmallOverloadController extends Controller
12
 class SmallOverloadController extends Controller
13
 {
13
 {
14
     /** @return Response */
14
     /** @return Response */
15
-    public function smallOverloadAction(SessionInterface $session)
15
+    public function smallOverloadAction()
16
     {
16
     {
17
+        $session = $this->get('session');
17
         $entities = $this->get('doctrine')->getRepository(SmallOverload1::class)->findAll();
18
         $entities = $this->get('doctrine')->getRepository(SmallOverload1::class)->findAll();
18
         $this
19
         $this
19
             ->writeSession($session)
20
             ->writeSession($session)

Ładowanie…
Anuluj
Zapisz