Passed
Push — master ( ec98df...35fed6 )
by Stephen
03:39 queued 58s
created

GooglePlacesServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
namespace Sfneal\GooglePlaces\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class GooglePlacesServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any Healthy services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        // Publish config file
17
        $this->publishes([
18
            __DIR__.'/../../config/google-places.php' => base_path('config/google-places.php'),
19
        ], 'config');
20
21
        // Map places routes check paths
22
        $this->loadRoutesFrom(__DIR__.'/../../routes/google-places.php');
23
    }
24
25
    /**
26
     * Register any Healthy services.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        // Load config file
33
        $this->mergeConfigFrom(__DIR__.'/../../config/google-places.php', 'google-places');
34
    }
35
}
36