protected function createToken(array $tokenConfig = [])
    {
        if (!array_key_exists('class', $tokenConfig)) {
            $tokenConfig['class'] = OAuthToken::className();
        }
        return Yii::createObject($tokenConfig);
    }
protected function createToken(array $tokenConfig = [])
    {
        if (!array_key_exists('class', $tokenConfig)) {
            $tokenConfig['class'] = OAuthToken::className();
        }
        return Yii::createObject($tokenConfig);
    }
protected function createToken ( array $ tokenConfig = [ ] ) { if ( ! array_key_exists ( 'class' , $ tokenConfig ) ) { $ tokenConfig [ 'class' ] = OAuthToken :: className ( ) ; } return Yii :: createObject ( $ tokenConfig ) ; }
Creates token from its configuration.
@param array $tokenConfig token configuration.
@return OAuthToken token instance.
Creates token from its configuration .