Browse Source

PHP 5.6 syntax, remove log()

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

+ 1
- 12
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): Response
15
+    public function smallOverloadAction(SessionInterface $session)
16
     {
16
     {
17
         $entities = $this->get('doctrine')->getRepository(SmallOverload1::class)->findAll();
17
         $entities = $this->get('doctrine')->getRepository(SmallOverload1::class)->findAll();
18
         $this
18
         $this
19
             ->writeSession($session)
19
             ->writeSession($session)
20
             ->readSession($session)
20
             ->readSession($session)
21
-            ->log()
22
             ->fireEvent()
21
             ->fireEvent()
23
             ->validate($entities);
22
             ->validate($entities);
24
 
23
 
48
         return $this;
47
         return $this;
49
     }
48
     }
50
 
49
 
51
-    /** @return $this */
52
-    protected function log()
53
-    {
54
-        for ($x = 1; $x <= 10; $x++) {
55
-//            $logger->notice('[Session ' . $session->getId() . '] Small overload message ' . $x);
56
-        }
57
-
58
-        return $this;
59
-    }
60
-
61
     /** @return $this */
50
     /** @return $this */
62
     protected function fireEvent()
51
     protected function fireEvent()
63
     {
52
     {

Loading…
Cancel
Save