MailEventServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
eloc 6
c 3
b 1
f 0
dl 0
loc 23
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A register() 0 4 1
1
<?php
2
3
namespace Giuga\LaravelMailLog;
4
5
use Giuga\LaravelMailLog\Listeners\MailSentListener;
6
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
7
use Illuminate\Mail\Events\MessageSent;
8
9
class MailEventServiceProvider extends ServiceProvider
10
{
11
    protected $listen = [
12
        MessageSent::class => [
13
            MailSentListener::class,
14
        ],
15
    ];
16
17
    /**
18
     * Bootstrap the application services.
19
     */
20
    public function boot()
21
    {
22
        parent::boot();
23
    }
24
25
    /**
26
     * Register the application services.
27
     */
28
    public function register()
29
    {
30
        // Laravel 8 need to invoke this to register the events defined at $listen
31
        parent::register();
32
    }
33
}
34