MultiBindingModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di\MultiBinding;
6
7
use Koriym\ParamReader\ParamReader;
8
use Koriym\ParamReader\ParamReaderInterface;
9
use Ray\Di\AbstractModule;
10
use Ray\Di\Scope;
11
use Ray\Di\Types;
12
13
/**
14
 * @psalm-import-type BindableInterface from Types
15
 */
16
final class MultiBindingModule extends AbstractModule
17
{
18
    protected function configure(): void
19
    {
20
        $this->bind(MultiBindings::class);
21
        $this->bind(ParamReaderInterface::class)->to(ParamReader::class)->in(Scope::SINGLETON);
22
        $this->bind(Map::class)->toProvider(MapProvider::class);
23
    }
24
}
25