ParserRegistry

Registry of file parsers

since

2.0

package

Joomla Framework

Methods

add

Register a parser, overridding a previously registered parser for the given type

add(\Joomla\Language\ParserInterface parser) : 
since

2.0

Arguments

parser

ParserInterfaceThe parser to registery

Response

void

get

Get the parser for a given type

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

2.0

Arguments

type

stringThe parser type to retrieve

Response

ParserInterface

has

Check if a parser is registered for the given type

has( type) : 
since

2.0

Arguments

type

stringThe parser type to check (typically the file extension)

Response

bool

Properties

parserMap

A map of the registered parsers

since

2.0

Type(s)

array<string|int, ParserInterface>