| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 13 | public function register() |
||
| 14 | { |
||
| 15 | $this->registerLoader(); |
||
| 16 | |||
| 17 | $this->app->singleton('translator', function ($app) { |
||
| 18 | $loader = $app['translation.loader']; |
||
| 19 | |||
| 20 | $locale = $app['config']['app.locale']; |
||
| 21 | |||
| 22 | $trans = new Translator($loader, $locale); |
||
| 23 | |||
| 24 | $trans->setFallback($app['config']['app.fallback_locale']); |
||
| 25 | |||
| 26 | return $trans; |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 42 |