EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Magister\Services\Events;
4
5
use Magister\Services\Support\ServiceProvider;
6
7
/**
8
 * Class EventServiceProvider.
9
 */
10
class EventServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Register bindings in the container.
14
     *
15
     * @return void
16
     */
17
    public function register()
18
    {
19
        $this->app->singleton('events', function ($app) {
20
            return new Dispatcher($app);
21
        });
22
    }
23
}
24