Blame view

vendor/aura/intl/config/default.php 795 Bytes
6c4edfa3   Alexandre   First Commit LabI...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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'),
];