Display an error if php-intl is not installed (fixes #120)

This commit is contained in:
Pierre Rudloff 2017-10-02 20:53:12 +02:00
parent b0c4963ac8
commit 3e13be702e

View file

@ -24,6 +24,10 @@ if ($config->uglyUrls) {
$container['router'] = new UglyRouter();
}
$container['view'] = ViewFactory::create($container);
if (!class_exists('Locale')) {
die('You need to install the intl extension for PHP.');
}
$container['locale'] = new LocaleManager($_COOKIE);
$app->add(new LocaleMiddleware($container));