app/library/OAuth/Adapter/League.php: handle exception in getProviderName()
This commit is contained in:
parent
d241f35a19
commit
d7023d5336
1 changed files with 6 additions and 1 deletions
|
|
@ -58,7 +58,12 @@ class League implements AdapterInterface
|
|||
*/
|
||||
public function getProviderName()
|
||||
{
|
||||
return (new \ReflectionClass($this->_provider))->getShortName();
|
||||
try {
|
||||
$reflection = new \ReflectionClass($this->_provider);
|
||||
return $reflection->getShortName();
|
||||
} catch(\ReflectionException $ex) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Reference in a new issue