public function getParser(string $section, bool $throwException = false)
    {
        if (!self::$parsers) {
            self::$parsers = self::loadDefaultParsers();
        }

        if (isset(self::$parsers[$section])) {
            return self::$parsers[$section];
        }

        if ($throwException) {
            throw new \RuntimeException("The section($section) formatter is not registered!", -500);
        }

        return null;
    }
public function getParser(string $section, bool $throwException = false)
    {
        if (!self::$parsers) {
            self::$parsers = self::loadDefaultParsers();
        }

        if (isset(self::$parsers[$section])) {
            return self::$parsers[$section];
        }

        if ($throwException) {
            throw new \RuntimeException("The section($section) formatter is not registered!", -500);
        }

        return null;
    }
public function getParser ( string $ section , bool $ throwException = false ) { if ( ! self :: $ parsers ) { self :: $ parsers = self :: loadDefaultParsers ( ) ; } if ( isset ( self :: $ parsers [ $ section ] ) ) { return self :: $ parsers [ $ section ] ; } if ( $ throwException ) { throw new \ RuntimeException ( "The section($section) formatter is not registered!" , - 500 ) ; } return null ; }
get section Parser
@param  string       $section
@param  bool|boolean $throwException
@return mixed
@throws \RuntimeException
get section Parser