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

LocaleServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 11
rs 10
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
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