EmbedResourceModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\Module;
6
7
use BEAR\Resource\Annotation\Embed;
8
use BEAR\Resource\EmbedInterceptor;
9
use Ray\Di\AbstractModule;
10
11
/**
12
 * Provides EmbedInterceptor interceptor bindings
13
 */
14
final class EmbedResourceModule extends AbstractModule
15
{
16
    /**
17
     * {@inheritDoc}
18
     */
19
    protected function configure(): void
20
    {
21
        $this->bindInterceptor(
22
            $this->matcher->any(),
23
            $this->matcher->annotatedWith(Embed::class),
24
            [EmbedInterceptor::class],
25
        );
26
    }
27
}
28