Passed
Push — master ( f9e29f...dc59a3 )
by Robert
07:33
created

ServiceProvider::boot()   A

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 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
namespace LivePersonInc\LiveEngageLaravel;
4
5
class ServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
	const CONFIG_PATH = __DIR__ . '/../config/live-engage-laravel.php';
8
9 1
	public function boot()
10
	{
11 1
		$this->publishes([
12 1
			self::CONFIG_PATH => config_path('live-engage-laravel.php'),
13 1
		], 'config');
14 1
	}
15
16 1
	public function register()
17
	{
18 1
		$this->mergeConfigFrom(
19 1
			self::CONFIG_PATH,
20 1
			'live-engage-laravel'
21
		);
22
23
		$this->app->bind('live-engage-laravel', function() {
24 1
			return new LiveEngageLaravel();
25 1
		});
26 1
	}
27
}
28