default.php
795 Bytes
<?php
/**
* Loader
*/
$loader->add('Aura\Intl\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');
/**
* Services
*/
$di->set('intl_package_factory', $di->lazyNew('Aura\Intl\PackageFactory'));
$di->set('intl_translator_locator', $di->lazyNew('Aura\Intl\TranslatorLocator'));
/**
* Aura\Intl\FormatterLocator
*/
$di->params['Aura\Intl\FormatterLocator']['registry'] = [
'basic' => $di->lazyNew('Aura\Intl\BasicFormatter'),
'intl' => $di->lazyNew('Aura\Intl\IntlFormatter'),
];
/**
* Aura\Intl\TranslatorLocator
*/
$di->params['Aura\Intl\TranslatorLocator'] = [
'locale' => 'en_US',
'factory' => $di->lazyNew('Aura\Intl\TranslatorFactory'),
'formatters' => $di->lazyNew('Aura\Intl\FormatterLocator'),
'packages' => $di->lazyNew('Aura\Intl\PackageLocator'),
];