Commit a8dfaed8 authored by Christophe Coevoet's avatar Christophe Coevoet

Made the default locale configurable

parent b9ecca72
......@@ -32,7 +32,7 @@ class SessionExtension implements ExtensionInterface
$this->app = $app;
$app['session'] = $app->share(function () use ($app) {
return new Session($app['session.storage']);
return new Session($app['session.storage'], $app['session.default_locale']);
});
$app['session.storage'] = $app->share(function () use ($app) {
......@@ -44,6 +44,10 @@ class SessionExtension implements ExtensionInterface
if (!isset($app['session.storage.options'])) {
$app['session.storage.options'] = array();
}
if (!isset($app['session.default_locale'])) {
$app['session.default_locale'] = 'en';
}
}
public function onKernelRequest($event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment