From 45f3d0a878df4debf24909dbce35c85d04baa6f3 Mon Sep 17 00:00:00 2001 From: Thomas Welton Date: Sun, 22 Sep 2013 16:33:20 +0100 Subject: [PATCH] Added consumer method fixes #11 --- src/Thomaswelton/LaravelOauth/OAuth.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Thomaswelton/LaravelOauth/OAuth.php b/src/Thomaswelton/LaravelOauth/OAuth.php index 3b6add4..3e46dcf 100644 --- a/src/Thomaswelton/LaravelOauth/OAuth.php +++ b/src/Thomaswelton/LaravelOauth/OAuth.php @@ -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);