blob: 2b829d4da20cc48173f8814db6e409bc91fd85e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php
namespace Madcoda\Youtube;
use Madcoda\Youtube\Youtube;
use Illuminate\Support\ServiceProvider;
class YoutubeServiceProviderLaravel5 extends ServiceProvider
{
protected $defer = true;
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__.'/config/youtube.php' => config_path('youtube.php'),
]);
}
/**
* Register bindings in the container.
*
* @return void
*/
public function register()
{
$this->app->bind('Madcoda\Youtube\Youtube', function ($app) {
return new Youtube($app['config']->get('youtube'));
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return ['Madcoda\Youtube\Youtube'];
}
}
|