Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | 8 | public function __construct(string $path = null) |
|
27 | { |
||
28 | 8 | $path = $path ? ltrim($path, '/') : 'config/routes.yml'; |
|
29 | |||
30 | 8 | $this->rootDir = UriResolver::removeDotSegments(__DIR__.'/../../../'); |
|
31 | 8 | $this->routeFile = "{$this->rootDir}{$path}"; |
|
32 | 8 | $this->parser = new Parser(); |
|
33 | 8 | } |
|
54 |