Webiny\Component\OAuth2\Bridge\OAuth2::setLibrary PHP Method

setLibrary() static public method

Change the default library used for the driver.
static public setLibrary ( string $pathToClass )
$pathToClass string Path to the new bridge class. The class must implement \Webiny\Component\OAuth2\Bridge\OAuth2Interface.
    static function setLibrary($pathToClass)
    {
        self::$library = $pathToClass;
    }