NotifierServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php namespace Padosoft\Laravel\Notification\Notifier;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class NotifierServiceProvider extends ServiceProvider {
6
7
	/**
8
	 * Indicates if loading of the provider is deferred.
9
	 *
10
	 * @var bool
11
	 */
12
	protected $defer = false;
13
14
	/**
15
	 * Bootstrap the application events.
16
	 *
17
	 * @return void
18
	 */
19
	public function boot()
20
	{
21
	}
22
23
	/**
24
	 * Register the service provider.
25
	 *
26
	 * @return void
27
	 */
28
	public function register()
29
	{
30
		$this->app->singleton('notifier', function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
		    return new Notifier(session());
32
		});
33
	}
34
35
	/**
36
	 * Get the services provided by the provider.
37
	 *
38
	 * @return array
39
	 */
40
	public function provides()
41
	{
42
		return ['notifier'];
43
	}
44
45
}
46
47