Completed
Pull Request — master (#26)
by Matthew
02:22
created

PlatesConfiguration::apply()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Equip\Configuration;
4
5
use Auryn\Injector;
6
use League\Plates\Engine;
7
8
class PlatesConfiguration implements ConfigurationInterface
9
{
10
    use EnvTrait;
11
12 1
    public function apply(Injector $injector)
13
    {
14 1
        $injector->define(Engine::class, [
15 1
            ':directory' => $this->env['PLATES_DIRECTORY'],
16 1
        ]);
17 1
    }
18
}
19