public function create($adapterType, array $config)
    {
        if (!array_key_exists($adapterType, $this->adapters)) {
            throw new \InvalidArgumentException(
                sprintf('Cache Adapter\'s key %s does not exist', $adapterType)
            );
        }

        /**
         * @fixme : Active this part & clean cache config
         */
        if (!isset($config[$adapterType])) {
            throw new InvalidConfigurationException(
                sprintf('Config is not set for adapter %s', $adapterType)
            );
        }

        return new $this->adapters[$adapterType]($config[$adapterType]);
    }
public function create($adapterType, array $config)
    {
        if (!array_key_exists($adapterType, $this->adapters)) {
            throw new \InvalidArgumentException(
                sprintf('Cache Adapter\'s key %s does not exist', $adapterType)
            );
        }

        /**
         * @fixme : Active this part & clean cache config
         */
        if (!isset($config[$adapterType])) {
            throw new InvalidConfigurationException(
                sprintf('Config is not set for adapter %s', $adapterType)
            );
        }

        return new $this->adapters[$adapterType]($config[$adapterType]);
    }
public function create ( $ adapterType , array $ config ) { if ( ! array_key_exists ( $ adapterType , $ this -> adapters ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Cache Adapter\'s key %s does not exist' , $ adapterType ) ) ; } /**
         * @fixme : Active this part & clean cache config
         */ if ( ! isset ( $ config [ $ adapterType ] ) ) { throw new InvalidConfigurationException ( sprintf ( 'Config is not set for adapter %s' , $ adapterType ) ) ; } return new $ this -> adapters [ $ adapterType ] ( $ config [ $ adapterType ] ) ; }
Create an adapter

@param  string $adapterType

@return AdapterInterface

@throws \InvalidArgumentException
Create an adapter