Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Added consumer method fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswelton committed Sep 22, 2013
1 parent 8da5e64 commit 45f3d0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Thomaswelton/LaravelOauth/OAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function user($provider)
return new $className($service);
}

public function consumer($provider){
return $this->getServiceFactory($provider);
}

public function getAuthorizationUri($service, $scope, array $state = array())
{
$factory = $this->getServiceFactory($service, $scope);
Expand Down

0 comments on commit 45f3d0a

Please sign in to comment.