Switch to symfony/translation for translations (#250)
This commit is contained in:
parent
0b1ce90f47
commit
a5bd827d21
16 changed files with 399 additions and 212 deletions
|
@ -32,14 +32,14 @@ if ($config->debug) {
|
|||
Debug::enable();
|
||||
}
|
||||
|
||||
$container['view'] = ViewFactory::create($container);
|
||||
|
||||
if (!class_exists('Locale')) {
|
||||
die('You need to install the intl extension for PHP.');
|
||||
}
|
||||
$container['locale'] = new LocaleManager();
|
||||
$container['locale'] = LocaleManager::getInstance();
|
||||
$app->add(new LocaleMiddleware($container));
|
||||
|
||||
$container['view'] = ViewFactory::create($container);
|
||||
|
||||
$frontController = new FrontController($container);
|
||||
$jsonController = new JsonController($container);
|
||||
$downloadController = new DownloadController($container);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue