public function createServiceWithName(ServiceLocatorInterface $services, $name, $requestedName)
    {
        $config = $this->getConfig($services);
        return AdapterServiceFactory::factory($config[$requestedName]);
    }
public function createServiceWithName(ServiceLocatorInterface $services, $name, $requestedName)
    {
        $config = $this->getConfig($services);
        return AdapterServiceFactory::factory($config[$requestedName]);
    }
public function createServiceWithName ( ServiceLocatorInterface $ services , $ name , $ requestedName ) { $ config = $ this -> getConfig ( $ services ) ; return AdapterServiceFactory :: factory ( $ config [ $ requestedName ] ) ; }
Create a DB adapter

@param  ServiceLocatorInterface $services
@param  string $name
@param  string $requestedName
@throws Exception\UnsupportedDriverException
@return \Zend\Db\Adapter\Adapter
Create a DB adapter