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

AbstractController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 13
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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