diff --git a/src/Facades/Youtube.php b/src/Facades/Youtube.php index a8bc77f..4cff14d 100644 --- a/src/Facades/Youtube.php +++ b/src/Facades/Youtube.php @@ -8,6 +8,6 @@ class Youtube extends Facade { protected static function getFacadeAccessor() { - return 'Madcoda\Youtube'; + return 'Madcoda\Youtube\Youtube'; } } diff --git a/src/YoutubeServiceProviderLaravel4.php b/src/YoutubeServiceProviderLaravel4.php index f5efac5..cbe33ac 100644 --- a/src/YoutubeServiceProviderLaravel4.php +++ b/src/YoutubeServiceProviderLaravel4.php @@ -33,7 +33,7 @@ public function boot() */ public function register() { - $this->app->bindShared('Madcoda\Youtube', function ($app) { + $this->app->bindShared('Madcoda\Youtube\Youtube', function ($app) { return new Youtube($app['config']->get('php-youtube-api::youtube')); }); } @@ -45,6 +45,6 @@ public function register() */ public function provides() { - return array('Madcoda\Youtube'); + return array('Madcoda\Youtube\Youtube'); } } diff --git a/src/YoutubeServiceProviderLaravel5.php b/src/YoutubeServiceProviderLaravel5.php index 2f36561..2b829d4 100644 --- a/src/YoutubeServiceProviderLaravel5.php +++ b/src/YoutubeServiceProviderLaravel5.php @@ -28,7 +28,7 @@ public function boot() */ public function register() { - $this->app->bind('Madcoda\Youtube', function ($app) { + $this->app->bind('Madcoda\Youtube\Youtube', function ($app) { return new Youtube($app['config']->get('youtube')); }); } @@ -41,6 +41,6 @@ public function register() */ public function provides() { - return ['Madcoda\Youtube']; + return ['Madcoda\Youtube\Youtube']; } }