private function parseConfig (string $configText) : array
    {
        $config = $this->deindent($configText);

        if (empty($config))
        {
            return [];
        }

        try
        {
            $parsed = Yaml::parse($config);

            return is_array($parsed)
                ? $parsed
                : [];
        }
        catch (ParseException $e)
        {
            return [];
        }
    }