NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class ParserRegistry

Registry of parsers used by the application

Namespace: Guzzle\Parser
Located at Guzzle/Parser/ParserRegistry.php

## Methods summary

- `public static` `getInstance ( )`
- `public` `__construct ( )`
- `public` `getParser ( string $name )`

  Get a parser by name from an instance

- `public` `registerParser ( string $name, mixed $parser )`

  Register a custom parser by name with the register

## Methods detail

# `public static `Guzzle\Parser\ParserRegistry``
`getInstance( )`

#### Returns

``Guzzle\Parser\ParserRegistry``

#### CodeCoverageIgnore

# `public`
`__construct( )`
# `public mixed|null`
`getParser( string $name )`

Get a parser by name from an instance

#### Parameters

$name
  `string`
  $name Name of the parser to retrieve

#### Returns

`mixed|null`
# `public`
`registerParser( string $name, mixed $parser )`

Register a custom parser by name with the register

#### Parameters

$name
  `string`
  $name Name or handle of the parser to register
$parser
  `mixed`
  $parser Instantiated parser to register

### Magic methods summary

## Properties summary

`protected static `Guzzle\Parser\ParserRegistry`` | $instance | # Singleton instance
`protected array` | $instances | # Array of parser instances
`protected array` | $mapping | # Mapping of parser name to default class