Wraps multiple message loaders calling them one after another until one of them returns a non-empty package.
array<callable>
The list of callables to execute one after another for loading messages
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
Executes this object returning the translations package as configured in the chain.
__construct(array<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
array<callable>
$loaders List of callables to execute
__invoke(): Cake\I18n\Package
Executes this object returning the translations package as configured in the chain.
Cake\I18n\Package
RuntimeException
The list of callables to execute one after another for loading messages
array<callable>
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.I18n.ChainMessagesLoader.html