Skip to content

Commit

Permalink
Example, callback fix bug in exception and added facebook to switch-case
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Sep 15, 2014
1 parent 10cacfb commit 2a6c804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
$provider = strtolower($_GET['provider']);

switch ($provider) {
case 'facebook':
case 'github':
case 'vk':
$provider = $service->getProvider($provider);
break;
default:
throw new \Exception('Wrong $provider passed in url : ', $provider);
throw new \Exception('Wrong $provider passed in url : ' . $provider);
break;
}

Expand Down

0 comments on commit 2a6c804

Please sign in to comment.