Registry of parsers used by the application
Definition at line 8 of file ParserRegistry.php.
◆ __construct()
Guzzle\Parser\ParserRegistry::__construct |
( |
| ) |
|
◆ getInstance()
static Guzzle\Parser\ParserRegistry::getInstance |
( |
| ) |
|
|
static |
◆ getParser()
Guzzle\Parser\ParserRegistry::getParser |
( |
|
$name | ) |
|
Get a parser by name from an instance
- Parameters
-
string | $name | Name of the parser to retrieve |
- Returns
- mixed|null
Definition at line 58 of file ParserRegistry.php.
◆ registerParser()
Guzzle\Parser\ParserRegistry::registerParser |
( |
|
$name, |
|
|
|
$parser |
|
) |
| |
Register a custom parser by name with the register
- Parameters
-
string | $name | Name or handle of the parser to register |
mixed | $parser | Instantiated parser to register |
Definition at line 77 of file ParserRegistry.php.
◆ $instance
Guzzle\Parser\ParserRegistry::$instance |
|
staticprotected |
◆ $instances
◆ $mapping
array Guzzle\Parser\ParserRegistry::$mapping |
|
protected |
Initial value:= array(
'message' => 'Guzzle\\Parser\\Message\\MessageParser',
'cookie' => 'Guzzle\\Parser\\Cookie\\CookieParser',
'url' => 'Guzzle\\Parser\\Url\\UrlParser',
'uri_template' => 'Guzzle\\Parser\\UriTemplate\\UriTemplate',
)
Mapping of parser name to default class
Definition at line 23 of file ParserRegistry.php.
The documentation for this class was generated from the following file: