TmdbServiceProviderLaravel4::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @package php-tmdb\laravel
4
 * @author Mark Redeman <[email protected]>
5
 * @copyright (c) 2014, Mark Redeman
6
 */
7
namespace Tmdb\Laravel;
8
9
use Illuminate\Support\ServiceProvider;
10
11
class TmdbServiceProviderLaravel4 extends ServiceProvider {
12
13
    /**
14
     * Bootstrap the application events.
15
     *
16
     * @return void
17
     */
18
    public function boot()
19
    {
20
        $this->package('php-tmdb/laravel', 'tmdb', __DIR__);
0 ignored issues
show
Bug introduced by
The method package() does not seem to exist on object<Tmdb\Laravel\TmdbServiceProviderLaravel4>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
21
    }
22
23
    /**
24
     * Register the service provider.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        $this->app->bind('Tmdb\Laravel\Adapters\EventDispatcherAdapter', 'Tmdb\Laravel\Adapters\EventDispatcherLaravel4');
31
    }
32
33
    /**
34
     * Get the TMDB configuration from the config repository
35
     *
36
     * @return array
37
     */
38
    public function config()
39
    {
40
        return $this->app['config']->get('tmdb::tmdb');
41
    }
42
}
43