Passed
Push — master ( 8652e1...ae54b4 )
by Robert
03:22
created

ServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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