Passed
Push — master ( e83847...16b30f )
by Radu
01:36
created

AbstractController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
namespace ParcelValue\ApiClient;
3
4
abstract class AbstractController extends \WebServCo\Framework\AbstractController
5
{
6
    protected $repository;
7
8
    use \ParcelValue\ApiClient\Traits\ControllerTrait;
9
10
    public function __construct()
11
    {
12
        $this->initPaths();
13
14
        $outputLoader = new OutputLoader($this->data('path/project'));
15
        parent::__construct($outputLoader);
16
17
        /* custom configuration settings */
18
        $this->config()->add(
19
            'app',
20
            $this->config()->load(
21
                'App',
22
                $this->data('path/project')
23
            )
24
        );
25
    }
26
}
27