Skip to content

Commit

Permalink
update the name in binding
Browse files Browse the repository at this point in the history
  • Loading branch information
madcoda committed Apr 13, 2017
1 parent 860a4a2 commit 886e3aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Facades/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class Youtube extends Facade
{
protected static function getFacadeAccessor()
{
return 'Madcoda\Youtube';
return 'Madcoda\Youtube\Youtube';
}
}
4 changes: 2 additions & 2 deletions src/YoutubeServiceProviderLaravel4.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
}
Expand All @@ -45,6 +45,6 @@ public function register()
*/
public function provides()
{
return array('Madcoda\Youtube');
return array('Madcoda\Youtube\Youtube');
}
}
4 changes: 2 additions & 2 deletions src/YoutubeServiceProviderLaravel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
}
Expand All @@ -41,6 +41,6 @@ public function register()
*/
public function provides()
{
return ['Madcoda\Youtube'];
return ['Madcoda\Youtube\Youtube'];
}
}

0 comments on commit 886e3aa

Please sign in to comment.