NotifierServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Rojtjo\Notifier\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use Rojtjo\Notifier\SessionStore as NotifierSessionStore;
7
use Rojtjo\Notifier\Transport;
8
use Rojtjo\Notifier\Transports\SessionTransport;
9
10
class NotifierServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Register the service provider.
14
     *
15
     * @return void
16
     */
17 3
    public function register()
18
    {
19 3
        $this->app->singleton(Transport::class, SessionTransport::class);
20 3
        $this->app->singleton(NotifierSessionStore::class, SessionStore::class);
21 3
    }
22
}
23