Completed
Push — master ( fa3c04...692093 )
by Vitaly
02:57
created

ControllerConfigurator::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by PhpStorm.
4
 * User: root
5
 * Date: 27.07.2016
6
 * Time: 1:55.
7
 */
8
namespace samsonframework\container\configurator;
9
10
use samsonframework\container\ContainerBuilder;
11
12
/**
13
 * Controller class configurator.
14
 *
15
 * This configurator adds class to Controller container scope.
16
 * @see    samsonframework\container\Container::SCOPE_CONTROLLER
17
 *
18
 * @author Vitaly Egorov <[email protected]>
19
 */
20
class ControllerConfigurator extends ScopeConfigurator
21
{
22
    /**
23
     * ControllerConfigurator constructor.
24
     */
25 11
    public function __construct()
26
    {
27
        // Add to controller scope
28 11
        parent::__construct(ContainerBuilder::SCOPE_CONTROLLER);
29 11
    }
30
}
31