Conditions | 2 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function __construct() |
||
32 | { |
||
33 | $locator = new FileLocator([ |
||
34 | __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . $this->directory |
||
35 | ]); |
||
36 | |||
37 | try { |
||
38 | $loader = new YamlConfigLoader($locator); |
||
39 | |||
40 | $this->config = $loader->load( |
||
41 | $locator->locate($this->file) |
||
42 | ); |
||
43 | } catch (\Exception $e) { |
||
44 | Visual::print($this->file . ' could not be loaded, please copy ' . $this->directory . '/config.yml.example to ' . $this->directory . '/' . $this->file); |
||
45 | } |
||
83 | } |