EcommerceBundle/Factory/Providers/BraintreeProvider.php
public function initialize($container, PaymentServiceProvider $psp)
    {
        parent::initialize($container, $psp);
        if(isset($this->parameters['environment'])) Braintree_Configuration::environment($this->parameters['environment']);
        if(isset($this->parameters['merchant_id'])) Braintree_Configuration::merchantId($this->parameters['merchant_id']);
        if(isset($this->parameters['public_key'])) Braintree_Configuration::publicKey($this->parameters['public_key']);
        if(isset($this->parameters['private_key'])) Braintree_Configuration::privateKey($this->parameters['private_key']);
        
        return $this;
    }
public function initialize($container, PaymentServiceProvider $psp)
    {
        parent::initialize($container, $psp);
        if(isset($this->parameters['environment'])) Braintree_Configuration::environment($this->parameters['environment']);
        if(isset($this->parameters['merchant_id'])) Braintree_Configuration::merchantId($this->parameters['merchant_id']);
        if(isset($this->parameters['public_key'])) Braintree_Configuration::publicKey($this->parameters['public_key']);
        if(isset($this->parameters['private_key'])) Braintree_Configuration::privateKey($this->parameters['private_key']);
        
        return $this;
    }
public function initialize ( $ container , PaymentServiceProvider $ psp ) { parent :: initialize ( $ container , $ psp ) ; if ( isset ( $ this -> parameters [ 'environment' ] ) ) Braintree_Configuration :: environment ( $ this -> parameters [ 'environment' ] ) ; if ( isset ( $ this -> parameters [ 'merchant_id' ] ) ) Braintree_Configuration :: merchantId ( $ this -> parameters [ 'merchant_id' ] ) ; if ( isset ( $ this -> parameters [ 'public_key' ] ) ) Braintree_Configuration :: publicKey ( $ this -> parameters [ 'public_key' ] ) ; if ( isset ( $ this -> parameters [ 'private_key' ] ) ) Braintree_Configuration :: privateKey ( $ this -> parameters [ 'private_key' ] ) ; return $ this ; }
Constructor with Braintree configuration

@param string $container
@param PaymentServiceProvider $psp
Constructor with Braintree configuration