protected function buildOAuth1Provider(SocialiteManager $socialite, $providerClass, $providerName, $oauth1Server)
    {
        $this->classExtends($oauth1Server, OAuth1Server::class);

        $config = $this->getConfig($providerClass, $providerName);

        $configServer = $socialite->formatConfig($config->get());

        $provider = new $providerClass(
            $this->app->offsetGet('request'), new $oauth1Server($configServer)
        );

        $provider->setConfig($config);

        return $provider;
    }
protected function buildOAuth1Provider(SocialiteManager $socialite, $providerClass, $providerName, $oauth1Server)
    {
        $this->classExtends($oauth1Server, OAuth1Server::class);

        $config = $this->getConfig($providerClass, $providerName);

        $configServer = $socialite->formatConfig($config->get());

        $provider = new $providerClass(
            $this->app->offsetGet('request'), new $oauth1Server($configServer)
        );

        $provider->setConfig($config);

        return $provider;
    }
protected function buildOAuth1Provider ( SocialiteManager $ socialite , $ providerClass , $ providerName , $ oauth1Server ) { $ this -> classExtends ( $ oauth1Server , OAuth1Server :: class ) ; $ config = $ this -> getConfig ( $ providerClass , $ providerName ) ; $ configServer = $ socialite -> formatConfig ( $ config -> get ( ) ) ; $ provider = new $ providerClass ( $ this -> app -> offsetGet ( 'request' ) , new $ oauth1Server ( $ configServer ) ) ; $ provider -> setConfig ( $ config ) ; return $ provider ; }
Build an OAuth 1 provider instance.

@param \Laravel\Socialite\SocialiteManager $socialite
@param string $providerClass must extend Laravel\Socialite\One\AbstractProvider
@param string $providerName
@param string $oauth1Server  must extend League\OAuth1\Client\Server\Server

@return \Laravel\Socialite\One\AbstractProvider

@throws \SocialiteProviders\Manager\Exception\MissingConfigException
Build an OAuth 1 provider instance .