Completed
Push — master ( b112db...b25060 )
by Vladimir
10:13
created

EventServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Events;
6
7
use Illuminate\Support\ServiceProvider;
8
use Illuminate\Contracts\Events\Dispatcher;
9
use FondBot\Foundation\Listeners\HandleConversation;
10
11
class EventServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Register the service provider.
15
     *
16
     * @return void
17
     */
18 83
    public function register(): void
19
    {
20
        /** @var Dispatcher $events */
21 83
        $events = $this->app['events'];
22
23 83
        $events->listen(MessageReceived::class, HandleConversation::class);
24 83
    }
25
}
26