@@ -21,10 +21,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $webProcessor = new EccubeWebProcessor(); |
| 101 | 101 | $uidProcessor = new UidProcessor(8); |
| 102 | 102 | |
| 103 | - $FingerCrossedHandler->pushProcessor(function ($record) use ($app, $uidProcessor, $webProcessor) { |
|
| 103 | + $FingerCrossedHandler->pushProcessor(function($record) use ($app, $uidProcessor, $webProcessor) { |
|
| 104 | 104 | // ログフォーマットに出力する値を独自に設定 |
| 105 | 105 | |
| 106 | 106 | $record['level_name'] = sprintf("%-5s", $record['level_name']); |