Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function __construct($config) |
||
15 | { |
||
16 | parent::__construct('test', true); |
||
17 | |||
18 | $fs = new Filesystem(); |
||
19 | |||
20 | if (!$fs->isAbsolutePath($config)) { |
||
21 | $config = __DIR__.'/config/'.$config; |
||
22 | } |
||
23 | |||
24 | if (!file_exists($config)) { |
||
25 | throw new \RuntimeException(sprintf('The config file "%s" does not exist', $config)); |
||
26 | } |
||
27 | |||
28 | $this->config = $config; |
||
29 | } |
||
30 | |||
59 |