LaravelGmailServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

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