AbstractController::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 10
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ParcelValue\ApiClient;
6
7
abstract class AbstractController extends \WebServCo\Framework\AbstractController
8
{
9
    use \ParcelValue\ApiClient\Traits\ControllerTrait;
10
11
    public function __construct()
12
    {
13
        $projectPath = \WebServCo\Framework\Environment\Config::string('APP_PATH_PROJECT');
14
15
        // no library code before calling the parent constructor
16
        $outputLoader = new OutputLoader($projectPath);
17
18
        parent::__construct($outputLoader);
19
20
        $this->setupPaths();
21
    }
22
}
23