Passed
Pull Request — master (#140)
by
unknown
04:07 queued 01:40
created

LaravelGmailServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Ddomanskyi\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