class BufferedBundleReader implements BundleReaderInterface

Methods

__construct(BundleReaderInterface $reader, integer $bufferSize)

Buffers a given reader.

mixed
read(string $path, string $locale)

Reads a resource bundle.

string[]
getLocales(string $path)

Reads the available locales of a resource bundle.

Details

at line line 35
__construct(BundleReaderInterface $reader, integer $bufferSize)

Buffers a given reader.

Parameters

BundleReaderInterface $reader The reader to buffer.
integer $bufferSize The number of entries to store in the buffer.

at line line 44
mixed read(string $path, string $locale)

Reads a resource bundle.

Parameters

string $path The path to the resource bundle.
string $locale The locale to read.

Return Value

mixed Returns an array or {@link \ArrayAccess} instance for complex data, a scalar value otherwise.

at line line 58
string[] getLocales(string $path)

Reads the available locales of a resource bundle.

Parameters

string $path The path to the resource bundle.

Return Value

string[] A list of supported locale codes.