Completed
Pull Request — master (#1)
by Woody
27:07 queued 01:07
created

AurynConfiguration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A apply() 0 11 1
1
<?php
2
3
namespace Equip\Configuration;
4
5
use Auryn\Injector;
6
7
class AurynConfiguration implements ConfigurationInterface
8
{
9
    /**
10
     * @inheritDoc
11
     */
12 25
    public function apply(Injector $injector)
13
    {
14 25
        $injector->alias(
15 25
            'Relay\ResolverInterface',
16 25
            'Equip\Resolver\AurynResolver'
17
        );
18
19 25
        $injector->define('Equip\Resolver\AurynResolver', [
20 25
            ':injector' => $injector,
21
        ]);
22 25
    }
23
}
24