Class ParserRegistry
Registry of parsers used by the application
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
Get a parser by name from an instance
Parameters
- $name
string
$name Name of the parser to retrieve
Returns
mixed|null
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
|
$instance |
#
Singleton instance |
protected
array
|
$instances |
#
Array of parser instances |
protected
array
|
$mapping |
#
Mapping of parser name to default class |