/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/I18n
NameSizeModeActions
Exception/-0755rm
Formatter/-0755rm
Middleware/-0755rm
Parser/-0755rm
ChainMessagesLoader.php23220644editdlrm
composer.json12810644editdlrm
Date.php74610644editdlrm
DateFormatTrait.php177740644editdlrm
FormatterInterface.php12760644editdlrm
FormatterLocator.php28640644editdlrm
FrozenDate.php72890644editdlrm
FrozenTime.php100630644editdlrm
functions.php88550644editdlrm
I18n.php96210644editdlrm
I18nDateTimeInterface.php97090644editdlrm
LICENSE.txt12040644editdlrm
MessagesFileLoader.php55550644editdlrm
Number.php180140644editdlrm
Package.php39720644editdlrm
PackageLocator.php34880644editdlrm
PluralRules.php58900644editdlrm
README.md28790644editdlrm
RelativeTimeFormatter.php152960644editdlrm
Time.php125870644editdlrm
Translator.php60140644editdlrm
TranslatorRegistry.php101990644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/I18n/ChainMessagesLoader.php (2322B)
*/ protected $_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 * * @param array $loaders List of callables to execute */ public function __construct(array $loaders) { $this->_loaders = $loaders; } /** * Executes this object returning the translations package as configured in * the chain. * * @return \Cake\I18n\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(); } }