Commit 64cb149a authored by Grégoire Pineau's avatar Grégoire Pineau

Added a default translator.domains

If someone registers its translation via yaml,
he will not provide $app['translator.domains'],
so pimple will raise an exeption.
parent c0321197
...@@ -50,6 +50,8 @@ class TranslationServiceProvider implements ServiceProviderInterface ...@@ -50,6 +50,8 @@ class TranslationServiceProvider implements ServiceProviderInterface
$app['translator.message_selector'] = $app->share(function () { $app['translator.message_selector'] = $app->share(function () {
return new MessageSelector(); return new MessageSelector();
}); });
$app['translator.domains'] = array();
} }
public function boot(Application $app) public function boot(Application $app)
......
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