private function parseString($string) { $result = $this->parser->parse($string); if (is_string($result)) { throw new \Exception('Config must be an array'); } return $result; }