Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function getEnvironmentSetUp($app) |
||
16 | { |
||
17 | $this->locales = ['fr', 'en']; |
||
18 | $this->addLocaleToUrl = true; |
||
19 | |||
20 | $app['config']->set('localeroute.locales', $this->locales); |
||
21 | $app['config']->set('localeroute.add_locale_to_url', $this->addLocaleToUrl); |
||
22 | |||
23 | $app['locale-route'] = app()->make(LocaleRouter::class); |
||
24 | $app['locale-route-url'] = app()->make(PrefixRoute::class); |
||
25 | |||
26 | $app['router']->aliasMiddleware('locale.session', SetSessionLocale::class); |
||
27 | } |
||
48 |