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\ParserInterfaceThe parser to registery

get

Get the parser for a given type

get(string type) : \Joomla\Language\ParserInterface
since

2.0.0-alpha

Arguments

type

stringThe 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

stringThe 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[]