ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 12
c 2
b 0
f 0
dl 0
loc 24
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 13 1
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