MediaWiki  1.32.5
LocalisationUpdate\ReaderFactory Class Reference

Constructs readers for files based on the names. More...

Public Member Functions

 getReader ( $filename)
 Constructs a suitable reader for a given path. More...
 

Detailed Description

Constructs readers for files based on the names.

Definition at line 13 of file ReaderFactory.php.

Member Function Documentation

◆ getReader()

LocalisationUpdate\ReaderFactory::getReader (   $filename)

Constructs a suitable reader for a given path.

Parameters
string$filenameUsually a relative path to the file name.
Returns
Reader
Exceptions
Exception

Definition at line 20 of file ReaderFactory.php.

References $code, and Language\getCodeFromFileName().

Referenced by LocalisationUpdate\Updater\readMessages().


The documentation for this class was generated from the following file: