src/Guzzle/Parser/ParserRegistry.php
public function getParser($name)
    {
        if (!isset($this->instances[$name])) {
            if (!isset($this->mapping[$name])) {
                return null;
            }
            $class = $this->mapping[$name];
            $this->instances[$name] = new $class();
        }

        return $this->instances[$name];
    }
public function getParser($name)
    {
        if (!isset($this->instances[$name])) {
            if (!isset($this->mapping[$name])) {
                return null;
            }
            $class = $this->mapping[$name];
            $this->instances[$name] = new $class();
        }

        return $this->instances[$name];
    }
public function getParser ( $ name ) { if ( ! isset ( $ this -> instances [ $ name ] ) ) { if ( ! isset ( $ this -> mapping [ $ name ] ) ) { return null ; } $ class = $ this -> mapping [ $ name ] ; $ this -> instances [ $ name ] = new $ class ( ) ; } return $ this -> instances [ $ name ] ; }
Get a parser by name from an instance

@param string $name Name of the parser to retrieve

@return mixed|null
Get a parser by name from an instance