public function create($adapterClass)
    {
        $adapter = new $adapterClass();
        $adapter->setDefaultCurrency($this->currencies['default']);
        $adapter->setManagedCurrencies($this->currencies['managed']);
        $adapter->setCurrencyClass($this->currencyClass);

        return $adapter;
    }
public function create($adapterClass)
    {
        $adapter = new $adapterClass();
        $adapter->setDefaultCurrency($this->currencies['default']);
        $adapter->setManagedCurrencies($this->currencies['managed']);
        $adapter->setCurrencyClass($this->currencyClass);

        return $adapter;
    }
public function create ( $ adapterClass ) { $ adapter = new $ adapterClass ( ) ; $ adapter -> setDefaultCurrency ( $ this -> currencies [ 'default' ] ) ; $ adapter -> setManagedCurrencies ( $ this -> currencies [ 'managed' ] ) ; $ adapter -> setCurrencyClass ( $ this -> currencyClass ) ; return $ adapter ; }
Create an adaper from the given class.

@param string $adapterClass
@return Lexik\Bundle\CurrencyBundle\Adapter\AbstractCurrencyAdapter
Create an adaper from the given class .