Documentation

Loader

Table of Contents

addJsonPath()  : void
Add a new JSON path to the loader.
addNamespace()  : void
Add a new namespace to the loader.
load()  : array<string|int, mixed>
Load the messages for the given locale.
namespaces()  : array<string|int, mixed>
Get an array of all the registered namespaces.

Methods

addJsonPath()

Add a new JSON path to the loader.

public addJsonPath(string $path) : void
Parameters
$path : string
Return values
void

addNamespace()

Add a new namespace to the loader.

public addNamespace(string $namespace, string $hint) : void
Parameters
$namespace : string
$hint : string
Return values
void

load()

Load the messages for the given locale.

public load(string $locale, string $group[, string $namespace = null ]) : array<string|int, mixed>
Parameters
$locale : string
$group : string
$namespace : string = null
Return values
array<string|int, mixed>

namespaces()

Get an array of all the registered namespaces.

public namespaces() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results