HttpResponderModule::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\Sunday\Provide\Transfer;
6
7
use BEAR\Sunday\Extension\Transfer\TransferInterface;
8
use Override;
9
use Ray\Di\AbstractModule;
10
11
/**
12
 * Provides TransferInterface and derived bindings
13
 *
14
 * The following bindings are provided:
15
 *
16
 *  TransferInterface
17
 *  HeaderInterface
18
 *  ConditionalResponseInterface
19
 */
20
final class HttpResponderModule extends AbstractModule
21
{
22
    #[Override]
23
    protected function configure(): void
24
    {
25
        $this->bind(TransferInterface::class)->to(HttpResponder::class);
26
        $this->bind(HeaderInterface::class)->to(Header::class);
27
        $this->bind(ConditionalResponseInterface::class)->to(ConditionalResponse::class);
28
    }
29
}
30