Passed
Push — master ( 01ffd5...1a60b5 )
by Radu
02:26
created

App::haltHttp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 3
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
namespace ParcelValue\ApiClient;
3
4
final class App extends \WebServCo\Framework\App
5
{
6
    /*
7
    * Needs to be inside the project becasue of the __NAMESPACE__ usage.
8
    */
9
    public function __construct($pathPublic, $pathProject = null)
10
    {
11
        /**
12
         * Project can be located in a completely different place
13
         * than the web directory.
14
         */
15
        $pathProject = $pathProject ?: realpath($pathPublic . '/..');
16
17
        parent::__construct($pathPublic, $pathProject, __NAMESPACE__);
18
19
        $this->config()->set('app/path/log', sprintf('%svar/log/', $this->projectPath));
20
    }
21
}
22