PHP Class Webiny\Component\OAuth2\OAuth2Loader

Use this class to get an instance of OAuth2 component.
Inheritance: use trait Webiny\Component\StdLib\StdLibTrait, use trait Webiny\Component\Http\HttpTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getInstance ( string $key ) : array | OAuth2 Returns an instance to OAuth2 server based on the current configuration.

Method Details

getInstance() public static method

Returns an instance to OAuth2 server based on the current configuration.
public static getInstance ( string $key ) : array | OAuth2
$key string Unique identifier for the OAuth2 server that you wish to get.
return array | OAuth2