瀏覽代碼

PHP 5.6 syntax, remove log()

tags/3.4.0
Steevan BARBOYON 8 年之前
父節點
當前提交
269759d522
共有 1 個檔案被更改,包括 1 行新增12 行删除
  1. 1
    12
      SmallOverloadBundle/Controller/SmallOverloadController.php

+ 1
- 12
SmallOverloadBundle/Controller/SmallOverloadController.php 查看文件

@@ -12,13 +12,12 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
12 12
 class SmallOverloadController extends Controller
13 13
 {
14 14
     /** @return Response */
15
-    public function smallOverloadAction(SessionInterface $session): Response
15
+    public function smallOverloadAction(SessionInterface $session)
16 16
     {
17 17
         $entities = $this->get('doctrine')->getRepository(SmallOverload1::class)->findAll();
18 18
         $this
19 19
             ->writeSession($session)
20 20
             ->readSession($session)
21
-            ->log()
22 21
             ->fireEvent()
23 22
             ->validate($entities);
24 23
 
@@ -48,16 +47,6 @@ class SmallOverloadController extends Controller
48 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 50
     /** @return $this */
62 51
     protected function fireEvent()
63 52
     {

Loading…
取消
儲存