ServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace LivePersonInc\LiveEngageLaravel;
4
5
/**
6
 * @codeCoverageIgnore
7
 */
8
class ServiceProvider extends \Illuminate\Support\ServiceProvider
9
{
10
	const CONFIG_PATH = __DIR__ . '/../config/live-engage-laravel.php';
11
12
	public function boot()
13
	{
14
		$this->publishes([
15
			self::CONFIG_PATH => config_path('live-engage-laravel.php'),
16
		], 'config');
17
	}
18
19
	public function register()
20
	{
21
		$this->mergeConfigFrom(
22
			self::CONFIG_PATH,
23
			'live-engage-laravel'
24
		);
25
		
26
		$this->app->bind('live-engage-laravel', function() {
27
			return new LiveEngageLaravel();
28
		});
29
		
30
		$loader = \Illuminate\Foundation\AliasLoader::getInstance();
31
		$loader->alias('LiveEngage', 'LivePersonInc\LiveEngageLaravel\Facades\LiveEngageLaravel');
32
		
33
	}
34
}
35