W3cubDocs

/Laravel 5.2

FileLoader

class FileLoader implements LoaderInterface (View source)

Methods

void __construct( Filesystem $files, string $path)

Create a new file loader instance.

array load( string $locale, string $group, string $namespace = null)

Load the messages for the given locale.

void addNamespace( string $namespace, string $hint)

Add a new namespace to the loader.

Details

void __construct( Filesystem $files, string $path)

Create a new file loader instance.

Parameters

Filesystem $files
string $path

Return Value

void

array load( string $locale, string $group, string $namespace = null)

Load the messages for the given locale.

Parameters

string $locale
string $group
string $namespace

Return Value

array

void addNamespace( string $namespace, string $hint)

Add a new namespace to the loader.

Parameters

string $namespace
string $hint

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Translation/FileLoader.html