\Cake\I18nChainMessagesLoader

Wraps multiple message loaders calling them one after another until one of them returns a non-empty package.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
$_loaders
N/A
No private methods found
No private properties found
N/A

Properties

$_loaders

$_loaders : array<mixed,callable>

The list of callables to execute one after another for loading messages

Type

array<mixed,callable>

Methods

__construct()

__construct(array<mixed,callable>  $loaders) 

Receives a list of callable functions or objects that will be executed one after another until one of them returns a non-empty translations package

Parameters

array<mixed,callable> $loaders

List of callables to execute

__invoke()

__invoke() : \Aura\Intl\Package

Executes this object returning the translations package as configured in the chain.

Throws

\RuntimeException

if any of the loaders in the chain is not a valid callable

Returns

\Aura\Intl\Package