src/components/Synchronizer.php
protected function factorySyncService( $serviceName ) {

        $syncClass = '\\ufocoder\\SyncSocial\\components\\services\\' . ucfirst( $serviceName );

        if ( ! class_exists( $syncClass ) ) {
            throw new Exception( Yii::t( 'SyncSocial', 'SyncSocial Extension not support "{serviceName}" service', [
                'serviceName' => $serviceName
            ] ) );
        }

        return new $syncClass( [
            'serviceSettings' => isset( $this->settings[ $serviceName ] ) ? $this->settings[ $serviceName ] : [ ],
            'connectUrl'      => $this->getConnectUrl( $serviceName )
        ] );
    }
protected function factorySyncService( $serviceName ) {

        $syncClass = '\\ufocoder\\SyncSocial\\components\\services\\' . ucfirst( $serviceName );

        if ( ! class_exists( $syncClass ) ) {
            throw new Exception( Yii::t( 'SyncSocial', 'SyncSocial Extension not support "{serviceName}" service', [
                'serviceName' => $serviceName
            ] ) );
        }

        return new $syncClass( [
            'serviceSettings' => isset( $this->settings[ $serviceName ] ) ? $this->settings[ $serviceName ] : [ ],
            'connectUrl'      => $this->getConnectUrl( $serviceName )
        ] );
    }
protected function factorySyncService ( $ serviceName ) { $ syncClass = '\\ufocoder\\SyncSocial\\components\\services\\' . ucfirst ( $ serviceName ) ; if ( ! class_exists ( $ syncClass ) ) { throw new Exception ( Yii :: t ( 'SyncSocial' , 'SyncSocial Extension not support "{serviceName}" service' , [ 'serviceName' => $ serviceName ] ) ) ; } return new $ syncClass ( [ 'serviceSettings' => isset ( $ this -> settings [ $ serviceName ] ) ? $ this -> settings [ $ serviceName ] : [ ] , 'connectUrl' => $ this -> getConnectUrl ( $ serviceName ) ] ) ; }
Create service synchronizer wrapper class

@param $serviceName

@return \yii\authclient\BaseOAuth
@throws Exception
Create service synchronizer wrapper class