AssistedInjectModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di;
6
7
use Ray\Di\Matcher\AssistedInjectMatcher;
8
9
/**
10
 * Assisted module for php8 attributes
11
 */
12
final class AssistedInjectModule extends AbstractModule
13
{
14
    protected function configure(): void
15
    {
16
        $this->bindInterceptor(
17
            $this->matcher->any(),
18
            (new AssistedInjectMatcher()),
19
            [AssistedInjectInterceptor::class]
20
        );
21
    }
22
}
23