FileLoader
class FileLoader implements LoaderInterface (View source)
Properties
protected Filesystem | $files | The filesystem instance. |
|
protected string | $path | The default path for the loader. |
|
protected array | $hints | All of the namespace hints. |
Methods
void
array
load(string $locale, string $group, string $namespace = null)
Load the messages for the given locale.
array
loadNamespaced(string $locale, string $group, string $namespace)
Load a namespaced translation group.
array
loadNamespaceOverrides(array $lines, string $locale, string $group, string $namespace)
Load a local namespaced translation group for overrides.
array
loadPath(string $path, string $locale, string $group)
Load a locale from a given path.
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.
array
load(string $locale, string $group, string $namespace = null)
Load the messages for the given locale.
protected array
loadNamespaced(string $locale, string $group, string $namespace)
Load a namespaced translation group.
protected array
loadNamespaceOverrides(array $lines, string $locale, string $group, string $namespace)
Load a local namespaced translation group for overrides.
protected array
loadPath(string $path, string $locale, string $group)
Load a locale from a given path.
void
addNamespace(string $namespace, string $hint)
Add a new namespace to the loader.