PsrLoggerModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Package\Provide\Logger;
6
7
use Override;
8
use Psr\Log\LoggerInterface;
9
use Ray\Di\AbstractModule;
10
use Ray\Di\Scope;
11
12
final class PsrLoggerModule extends AbstractModule
13
{
14
    /**
15
     * {@inheritDoc}
16 21
     */
17
    #[Override]
18 21
    protected function configure(): void
19 21
    {
20
        $this->bind(LoggerInterface::class)->toProvider(MonologProvider::class)->in(Scope::SINGLETON);
21
    }
22
}
23