Class ChainMessagesLoader
Wraps multiple message loaders calling them one after another until one of them returns a non-empty package.
        
    Namespace: Cake\I18n
    
    
    
      
  
      Property Summary
- 
        $_loaders protectedarrayThe list of callables to execute one after another for loading messages 
Method Summary
- 
          __construct() publicReceives a list of callable functions or objects that will be executed one after another until one of them returns a non-empty translations package 
- 
          __invoke() publicExecutes this object returning the translations package as configured in the chain. 
Method Detail
__construct() ¶ public
__construct(array $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$loaders
- List of callables to execute 
__invoke() ¶ public
__invoke(): Aura\Intl\PackageExecutes this object returning the translations package as configured in the chain.
Returns
Aura\Intl\PackageThrows
RuntimeExceptionif any of the loaders in the chain is not a valid callable
Property Detail
$_loaders ¶ protected
The list of callables to execute one after another for loading messages
Type
array