@@ -21,17 +21,17 @@ discard block |
||
| 21 | 21 | $app->register(new \Silex\Provider\MonologServiceProvider()); |
| 22 | 22 | |
| 23 | 23 | // Log |
| 24 | - $app['eccube.logger'] = $app->share(function ($app) { |
|
| 24 | + $app['eccube.logger'] = $app->share(function($app) { |
|
| 25 | 25 | return new Logger($app); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | 28 | // ヘルパー作成 |
| 29 | - $app['eccube.monolog.helper'] = $app->share(function ($app) { |
|
| 29 | + $app['eccube.monolog.helper'] = $app->share(function($app) { |
|
| 30 | 30 | return new LogHelper($app); |
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | 33 | // ログクラス作成ファクトリー |
| 34 | - $app['eccube.monolog.factory'] = $app->protect(function (array $channelValues) use ($app) { |
|
| 34 | + $app['eccube.monolog.factory'] = $app->protect(function(array $channelValues) use ($app) { |
|
| 35 | 35 | |
| 36 | 36 | $log = new $app['monolog.logger.class']($channelValues['name']); |
| 37 | 37 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | // monologの設定は除外 |
| 47 | 47 | unset($channels['monolog']); |
| 48 | 48 | foreach ($channels as $channel => $channelValues) { |
| 49 | - $app['monolog.logger.'.$channel] = $app->share(function ($app) use ($channelValues) { |
|
| 49 | + $app['monolog.logger.'.$channel] = $app->share(function($app) use ($channelValues) { |
|
| 50 | 50 | return $app['eccube.monolog.factory']($channelValues); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -54,15 +54,15 @@ discard block |
||
| 54 | 54 | // MonologServiceProviderで定義されているmonolog.handlerの置換 |
| 55 | 55 | $channelValues = $app['config']['log']['channel']['monolog']; |
| 56 | 56 | $app['monolog.name'] = $channelValues['name']; |
| 57 | - $app['monolog.handler'] = $app->share(function ($app) use ($channelValues) { |
|
| 57 | + $app['monolog.handler'] = $app->share(function($app) use ($channelValues) { |
|
| 58 | 58 | return $app['eccube.monolog.helper']->getHandler($channelValues); |
| 59 | 59 | }); |
| 60 | 60 | |
| 61 | - $app['eccube.monolog.listener'] = $app->share(function () use ($app) { |
|
| 61 | + $app['eccube.monolog.listener'] = $app->share(function() use ($app) { |
|
| 62 | 62 | return new LogListener($app['eccube.logger']); |
| 63 | 63 | }); |
| 64 | 64 | |
| 65 | - $app['listener.requestdump'] = $app->share(function ($app) { |
|
| 65 | + $app['listener.requestdump'] = $app->share(function($app) { |
|
| 66 | 66 | return new \Eccube\EventListener\RequestDumpListener($app); |
| 67 | 67 | }); |
| 68 | 68 | } |