Service::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 1
c 3
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php namespace GeneaLabs\LaravelMaps\Providers;
2
3
use GeneaLabs\LaravelMaps\Map;
4
use Illuminate\Support\ServiceProvider;
5
6
class Service extends ServiceProvider
7
{
8
    protected $defer = false;
9
10
    public function register()
11
    {
12
        $this->app->singleton('map', function () {
13
            return new Map(['apiKey' => config('services.google.maps.api-key')]);
14
        });
15
    }
16
17
    public function provides() : array
18
    {
19
        return array('genealabs-laravel-maps');
20
    }
21
}
22