Completed
Push — master ( 8c3b23...cef709 )
by Freek
03:33
created

LocaleServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 4
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 8
rs 9.4285
1
<?php
2
3
namespace App\Providers;
4
5
use App\Services\Locale\CurrentLocale;
6
use Illuminate\Support\ServiceProvider;
7
use Jenssegers\Date\Date;
8
9
class LocaleServiceProvider extends ServiceProvider
10
{
11
    public function boot()
12
    {
13
        $locale = CurrentLocale::determine();
14
15
        $this->app->setLocale(CurrentLocale::determine());
16
17
        Date::setLocale($locale);
18
    }
19
}
20