src/OAuthServiceRegistry.php
public static function getServiceName(ServiceInterface $oauthService)
    {
        if ($oauthService instanceof AbstractService) {
            return $oauthService->service();
        }

        return preg_replace('/^.*\\\\/', '', get_class($oauthService));
    }
public static function getServiceName(ServiceInterface $oauthService)
    {
        if ($oauthService instanceof AbstractService) {
            return $oauthService->service();
        }

        return preg_replace('/^.*\\\\/', '', get_class($oauthService));
    }
public static function getServiceName ( ServiceInterface $ oauthService ) { if ( $ oauthService instanceof AbstractService ) { return $ oauthService -> service ( ) ; } return preg_replace ( '/^.*\\\\/' , '' , get_class ( $ oauthService ) ) ; }
Retrieve the name from a service instance.

@param ServiceInterface $oauthService

@return string
Retrieve the name from a service instance .