BinaryBundleReader

class BinaryBundleReader extends AbstractBundleReader implements BundleReaderInterface

Reads binary .res resource bundles.

Methods

string[] getLocales(string $path)

Reads the available locales of a resource bundle.

from AbstractBundleReader
mixed read(string $path, string $locale)

Reads a resource bundle.

Details

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.

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.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Intl/ResourceBundle/Reader/BinaryBundleReader.html