| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | 1 | public function register() |
|
| 18 | {
|
||
| 19 | $this->container->share(FluentLogger::class, function() {
|
||
| 20 | $config = $this->container->get(Config::class); |
||
| 21 | return new FluentLogger($config['fluent.host'], $config['fluent.port']); |
||
| 22 | 1 | }); |
|
| 23 | |||
| 24 | 1 | $this->container->share(Logger::class, function() {
|
|
| 25 | 1 | $fluent = $this->container->get(FluentLogger::class); |
|
| 26 | 1 | $config = $this->container->get(Config::class); |
|
| 27 | 1 | return new Logger($fluent, $config['app.name']); |
|
| 28 | 1 | }); |
|
| 29 | |||
| 30 | } |
||
| 31 | } |