Browse Source

Do not use autowire, for old Symfony versions

tags/3.4.0
Steevan BARBOYON 8 years ago
parent
commit
af2bc38ee9
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      SmallOverloadBundle/Controller/SmallOverloadController.php

+ 2
- 1
SmallOverloadBundle/Controller/SmallOverloadController.php View File

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)

Loading…
Cancel
Save