Failed Conditions
Push — master ( d1d972...0addd3 )
by chihiro
500:16 queued 493:07
created
src/Eccube/ServiceProvider/LogServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
         $app->register(new \Silex\Provider\MonologServiceProvider());
22 22
 
23 23
         // Log
24
-        $app['eccube.loger'] = $app->share(function ($app) {
24
+        $app['eccube.loger'] = $app->share(function($app) {
25 25
             return new Logger($app);
26 26
         });
27
-        $app['eccube.log'] = $app->share(function ($app) {
27
+        $app['eccube.log'] = $app->share(function($app) {
28 28
             $log = new Log();
29 29
             $log->setLogger($app['eccube.loger']);
30 30
 
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
         });
33 33
 
34 34
         // ヘルパー作成
35
-        $app['eccube.monolog.helper'] = $app->share(function ($app) {
35
+        $app['eccube.monolog.helper'] = $app->share(function($app) {
36 36
             return new EccubeHelper($app);
37 37
         });
38 38
 
39 39
         // ログクラス作成ファクトリー
40
-        $app['eccube.monolog.factory'] = $app->protect(function (array $channelValues) use ($app) {
40
+        $app['eccube.monolog.factory'] = $app->protect(function(array $channelValues) use ($app) {
41 41
 
42 42
             $log = new $app['monolog.logger.class']($channelValues['name']);
43 43
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         // monologの設定は除外
53 53
         unset($channels['monolog']);
54 54
         foreach ($channels as $channel => $channelValues) {
55
-            $app['monolog.logger.'.$channel] = $app->share(function ($app) use ($channelValues) {
55
+            $app['monolog.logger.'.$channel] = $app->share(function($app) use ($channelValues) {
56 56
                 return $app['eccube.monolog.factory']($channelValues);
57 57
             });
58 58
         }
@@ -60,15 +60,15 @@  discard block
 block discarded – undo
60 60
         // MonologServiceProviderで定義されているmonolog.handlerの置換
61 61
         $channelValues = $app['config']['log']['channel']['monolog'];
62 62
         $app['monolog.name'] = $channelValues['name'];
63
-        $app['monolog.handler'] = $app->share(function ($app) use ($channelValues) {
63
+        $app['monolog.handler'] = $app->share(function($app) use ($channelValues) {
64 64
             return $app['eccube.monolog.helper']->getHandler($channelValues);
65 65
         });
66 66
 
67
-        $app['eccube.monolog.listener'] = $app->share(function () use ($app) {
67
+        $app['eccube.monolog.listener'] = $app->share(function() use ($app) {
68 68
             return new EccubeListener($app['eccube.log']);
69 69
         });
70 70
 
71
-        $app['listener.requestdump'] = $app->share(function ($app) {
71
+        $app['listener.requestdump'] = $app->share(function($app) {
72 72
             return new \Eccube\EventListener\RequestDumpListener($app);
73 73
         });
74 74
     }
Please login to merge, or discard this patch.