ControllerConfigurator::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\Builder;
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
    public function __construct()
26
    {
27
        // Add to controller scope
28
        parent::__construct(Builder::SCOPE_CONTROLLER);
29
    }
30
}
31