\Guzzle\ParserParserRegistry

Registry of parsers used by the application

Summary

Methods
Properties
Constants
getInstance()
__construct()
getParser()
registerParser()
No public properties found
No constants found
No protected methods found
$instance
$instances
$mapping
N/A
No private methods found
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — Array of parser instances

$mapping

$mapping : array

Type

array — Mapping of parser name to default class

Methods

getInstance()

getInstance() : self

Returns

self

__construct()

__construct() 

getParser()

getParser(string  $name) : mixed|null

Get a parser by name from an instance

Parameters

string $name

Name of the parser to retrieve

Returns

mixed|null

registerParser()

registerParser(string  $name, mixed  $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