| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public static function getElasticornConfiguration() : array |
||
| 18 | { |
||
| 19 | if (self::$isInitialized === false) { |
||
| 20 | $elasticornConfigPath = getenv('configurationPath') . self::ELASTICORN_CONFIG_FILENAME; |
||
| 21 | if (file_exists($elasticornConfigPath)) { |
||
| 22 | self::$configuration = Yaml::parse(file_get_contents($elasticornConfigPath)); |
||
| 23 | } |
||
| 24 | self::$isInitialized = true; |
||
| 25 | } |
||
| 26 | return self::$configuration; |
||
| 27 | } |
||
| 28 | |||
| 41 | } |