/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/I18n
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/I18n/ChainMessagesLoader.php (2335B)
_loaders = $loaders;
}
/**
* Executes this object returning the translations package as configured in
* the chain.
*
* @return \Aura\Intl\Package
* @throws \RuntimeException if any of the loaders in the chain is not a valid callable
*/
public function __invoke(): Package
{
foreach ($this->_loaders as $k => $loader) {
if (!is_callable($loader)) {
throw new RuntimeException(sprintf(
'Loader "%s" in the chain is not a valid callable',
$k
));
}
$package = $loader();
if (!$package) {
continue;
}
if (!($package instanceof Package)) {
throw new RuntimeException(sprintf(
'Loader "%s" in the chain did not return a valid Package object',
$k
));
}
return $package;
}
return new Package();
}
}