EcommerceBundle/Service/PaymentManager.php
public function getProviders(PaymentServiceProvider $psp=null) 
    {
        if(!is_null($psp)){
            foreach ($this->providers as $ppf) {
                if($ppf->getSlug() == $psp->getSlug()){
                    return $ppf;
                }
            }
        }
        return $this->providers;
    }
public function getProviders(PaymentServiceProvider $psp=null) 
    {
        if(!is_null($psp)){
            foreach ($this->providers as $ppf) {
                if($ppf->getSlug() == $psp->getSlug()){
                    return $ppf;
                }
            }
        }
        return $this->providers;
    }
public function getProviders ( PaymentServiceProvider $ psp = null ) { if ( ! is_null ( $ psp ) ) { foreach ( $ this -> providers as $ ppf ) { if ( $ ppf -> getSlug ( ) == $ psp -> getSlug ( ) ) { return $ ppf ; } } } return $ this -> providers ; }
Return ArrayCollection of PaymentProviderFactory

@return PersistCollection $psps
Return ArrayCollection of PaymentProviderFactory