protected function detectConfigType($filename) { return strtolower(pathinfo($filename, PATHINFO_EXTENSION)); }