| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 46 | protected function getEnvironmentSetUp($app) |
|
| 16 | { |
||
| 17 | 46 | $this->locales = ['fr', 'en']; |
|
| 18 | 46 | $this->addLocaleOption = true; |
|
| 19 | |||
| 20 | 46 | $app['config']->set('localeroute.locales', $this->locales); |
|
| 21 | 46 | $app['config']->set('localeroute.add_locale_to_url', $this->addLocaleOption); |
|
| 22 | |||
| 23 | 46 | $app['locale-route'] = app()->make(LocaleRouter::class); |
|
| 24 | 46 | $app['locale-route-url'] = app()->make(PrefixRoute::class); |
|
| 25 | |||
| 26 | 46 | $app['router']->middleware('locale.session', SetSessionLocale::class); |
|
| 27 | 46 | } |
|
| 28 | |||
| 37 |