ParserRegistry
Registry of file parsers
since |
2.0.0-alpha |
---|---|
package |
Joomla Framework |
Methods
add
Register a parser, overridding a previously registered parser for the given type
add(\Joomla\Language\ParserInterface parser) : void
since |
2.0.0-alpha |
---|
Arguments
- parser
\Joomla\Language\ParserInterface
The parser to registery
get
Get the parser for a given type
get(string type) : \Joomla\Language\ParserInterface
since |
2.0.0-alpha |
---|
Arguments
- type
string
The parser type to retrieve
Response
\Joomla\Language\ParserInterface
has
Check if a parser is registered for the given type
has(string type) : bool
since |
2.0.0-alpha |
---|
Arguments
- type
string
The parser type to check (typically the file extension)
Response
bool
Properties
parserMap
A map of the registered parsers
since |
2.0.0-alpha |
---|
Type(s)
\Joomla\Language\ParserInterface[]