ErrorModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 3
b 0
f 1
nc 1
nop 0
dl 0
loc 4
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Sunday\Provide\Error;
6
7
use BEAR\Sunday\Extension\Error\ErrorInterface;
8
use BEAR\Sunday\Extension\Error\ThrowableHandlerInterface;
9
use Ray\Di\AbstractModule;
10
11
class ErrorModule extends AbstractModule
12
{
13
    protected function configure(): void
14
    {
15 2
        $this->bind(ErrorInterface::class)->to(VndError::class);
16
        $this->bind(ThrowableHandlerInterface::class)->to(ThrowableHandler::class);
17 2
    }
18
}
19