Log   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 1
1
<?php
2
namespace PortlandLabs\Slackbot\Provider\Illuminate;
3
4
use Illuminate\Container\Container;
5
use League\CLImate\Logger;
6
use Psr\Log\LoggerInterface;
7
use Psr\Log\LogLevel;
8
9
class Log implements Provider
10
{
11
12
    /**
13
     * Register this provider
14
     *
15
     * @param Container $container
16
     *
17
     * @return void
18
     */
19
    public function register(Container $container)
20
    {
21
        // Use the CLImate logger
22
        $container->bind(LoggerInterface::class, function(Container $container) {
23
            return $container->make(Logger::class, ['level' => LogLevel::DEBUG]);
24
        });
25
    }
26
}