| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function init(string $path) |
||
| 40 | { |
||
| 41 | $rPath = realpath($path); |
||
| 42 | |||
| 43 | if (!is_dir($rPath) || !is_readable($rPath)) { |
||
| 44 | throw new RuntimeException(sprintf('Bot directory with absolute path "%s" does not exist or not readable.', $path)); |
||
| 45 | } |
||
| 46 | |||
| 47 | $configLoader = new ConfigLoader($rPath); |
||
| 48 | $this->config = $configLoader->load(); |
||
| 49 | } |
||
| 64 |