Results are aggregated by querying all requested configurations for the requested
locale then repeating this process for all locales down the locale cascade. This
allows for sparse data which is complemented by data from other sources or for more
generic locales. Aggregation can be controlled by either specifying the configurations
or a scope to use.
Usage:
Catalog::read(true, 'message', 'zh');
Catalog::read('default', 'message', 'zh');
Catalog::read('default', 'validation.postalCode', 'en_US');
public static read ( mixed $name, string $category, string $locale, array $options = [] ) : array | ||
$name | mixed | Provide a single configuration name as a string or multiple ones as an array which will be used to read from. Pass `true` to use all configurations. |
$category | string | A (dot-delimeted) category. |
$locale | string | A locale identifier. |
$options | array | Valid options are: - `'scope'`: The scope to use. - `'lossy'`: Whether or not to use the compact and lossy format, defaults to `true`. |
Résultat | array | If available the requested data, else `null`. |