src/Composer/Util/Bitbucket.php
private function storeInAuthConfig($originUrl, $consumerKey, $consumerSecret)
    {
        $this->config->getConfigSource()->removeConfigSetting('bitbucket-oauth.'.$originUrl);

        $time = null === $this->time ? time() : $this->time;
        $consumer = array(
            "consumer-key" => $consumerKey,
            "consumer-secret" => $consumerSecret,
            "access-token" => $this->token['access_token'],
            "access-token-expiration" => $time + $this->token['expires_in'],
        );

        $this->config->getAuthConfigSource()->addConfigSetting('bitbucket-oauth.'.$originUrl, $consumer);
    }
private function storeInAuthConfig($originUrl, $consumerKey, $consumerSecret)
    {
        $this->config->getConfigSource()->removeConfigSetting('bitbucket-oauth.'.$originUrl);

        $time = null === $this->time ? time() : $this->time;
        $consumer = array(
            "consumer-key" => $consumerKey,
            "consumer-secret" => $consumerSecret,
            "access-token" => $this->token['access_token'],
            "access-token-expiration" => $time + $this->token['expires_in'],
        );

        $this->config->getAuthConfigSource()->addConfigSetting('bitbucket-oauth.'.$originUrl, $consumer);
    }
private function storeInAuthConfig ( $ originUrl , $ consumerKey , $ consumerSecret ) { $ this -> config -> getConfigSource ( ) -> removeConfigSetting ( 'bitbucket-oauth.' . $ originUrl ) ; $ time = null === $ this -> time ? time ( ) : $ this -> time ; $ consumer = array ( "consumer-key" => $ consumerKey , "consumer-secret" => $ consumerSecret , "access-token" => $ this -> token [ 'access_token' ] , "access-token-expiration" => $ time + $ this -> token [ 'expires_in' ] , ) ; $ this -> config -> getAuthConfigSource ( ) -> addConfigSetting ( 'bitbucket-oauth.' . $ originUrl , $ consumer ) ; }
Store the new/updated credentials to the configuration
@param string $originUrl
@param string $consumerKey
@param string $consumerSecret
Store the new / updated credentials to the configuration