Fix on missing getDisplay Method
moved method up on hierarchy. Change-Id: I48e04dfcea30ab5034c9d5e7b15801067040d49f
This commit is contained in:
parent
e6b1bdc248
commit
cb52e87e80
|
@ -48,16 +48,6 @@ class OAuth2AuthenticationRequest extends OAuth2AuthorizationRequest
|
|||
return $this->getParam(OAuth2Protocol::OAuth2Protocol_Nonce);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDisplay()
|
||||
{
|
||||
$display = $this->getParam(OAuth2Protocol::OAuth2Protocol_Display);
|
||||
if(empty($display)) return OAuth2Protocol::OAuth2Protocol_Display_Page;
|
||||
return $display;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool|false $raw
|
||||
* @return array|string|null
|
||||
|
|
|
@ -13,6 +13,10 @@ use oauth2\OAuth2Protocol;
|
|||
class OAuth2AuthorizationRequest extends OAuth2Request
|
||||
{
|
||||
|
||||
/**
|
||||
* OAuth2AuthorizationRequest constructor.
|
||||
* @param OAuth2Message $msg
|
||||
*/
|
||||
public function __construct(OAuth2Message $msg)
|
||||
{
|
||||
parent::__construct($msg);
|
||||
|
@ -170,4 +174,13 @@ class OAuth2AuthorizationRequest extends OAuth2Request
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDisplay()
|
||||
{
|
||||
$display = $this->getParam(OAuth2Protocol::OAuth2Protocol_Display);
|
||||
if(empty($display)) return OAuth2Protocol::OAuth2Protocol_Display_Page;
|
||||
return $display;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue