Selaa lähdekoodia

Do not use autowire, for old Symfony versions

tags/3.4.0
Steevan BARBOYON 8 vuotta sitten
vanhempi
commit
af2bc38ee9
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      SmallOverloadBundle/Controller/SmallOverloadController.php

+ 2
- 1
SmallOverloadBundle/Controller/SmallOverloadController.php Näytä tiedosto

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

Loading…
Peruuta
Tallenna