src/Asg/SimpleSocialAuth/SimpleSocialAuthFactory.php
/**
     * @description : Used to register new classes and mapped them to allow to extend custom classes.
     * @access Public static;
     * @param string $provider ;
     * @param string $callableClass ;
     * @throws SocialAuthInvalidInterface
     */
@description : Used to register new classes and mapped them to allow to extend custom classes.
@access Public static;
@param string $provider ;
@param string $callableClass ;
@throws SocialAuthInvalidInterface
@description : Used to register new classes and mapped them to allow to extend custom classes . @access Public static ; @param string $provider ; @param string $callableClass ; @throws SocialAuthInvalidInterface
public static function register($provider,$callableClass){
        if ( is_callable($callableClass) or
            static::isSimpleSocialAuthInterface($callableClass) ) {
            static::$classMaps[$provider] = $callableClass;
        }else{
            throw new SocialAuthInvalidInterface('Class must be implemented from SimpleSocialAuthInterface');
        }
    }
public static function register ( $ provider , $ callableClass ) { if ( is_callable ( $ callableClass ) or static :: isSimpleSocialAuthInterface ( $ callableClass ) ) { static :: $ classMaps [ $ provider ] = $ callableClass ; } else { throw new SocialAuthInvalidInterface ( 'Class must be implemented from SimpleSocialAuthInterface' ) ; } }
@description : Used to register new classes and mapped them to allow to extend custom classes.
@description : Used to register new classes and mapped them to allow to extend custom classes .