EventServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace mindtwo\LaravelMultilingual\Providers;
4
5
use mindtwo\LaravelMultilingual\Services\Locale;
6
use mindtwo\LaravelMultilingual\Listeners\LocaleChangedEventSubscriber;
7
use Illuminate\Foundation\Support\Providers\EventServiceProvider as IlluminateEventServiceProvider;
8
9
class EventServiceProvider extends IlluminateEventServiceProvider
10
{
11
    /**
12
     * The subscriber classes to register.
13
     *
14
     * @var array
15
     */
16
    protected $subscribe = [
17
        LocaleChangedEventSubscriber::class,
18
    ];
19
20
    /**
21
     * Register any other events for your application.
22
     */
23
    public function boot()
24
    {
25
        parent::boot();
26
    }
27
28
    /**
29
     * Register any application services.
30
     */
31
    public function register()
32
    {
33
        $this->app->singleton(Locale::class);
34
    }
35
}
36