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

ControllerConfigurator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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