LaravelGmailServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Dacastro4\LaravelGmail;
4
5
use Illuminate\Support\Facades\App;
6
use Illuminate\Support\ServiceProvider;
7
8
class LaravelGmailServiceProvider extends ServiceProvider
9
{
10
11
	public function boot()
12
	{
13
		$this->publishes([__DIR__ . '/config/gmail.php' => App::make('path.config') . '/gmail.php',]);
14
	}
15
16
	public function register()
17
	{
18
19
		$this->mergeConfigFrom(__DIR__ . '/config/gmail.php', 'gmail');
20
21
		// Main Service
22
		$this->app->bind('laravelgmail', function ($app) {
23
			return new LaravelGmailClass($app['config']);
24
		});
25
26
	}
27
}
28