src/Mvc/Listener/Limit/Storage/Db.php
public function setServiceLocator(ServiceLocatorInterface $serviceManager)
    {
        if (!$this->dbAdapter instanceof DbAdapter) {
            $this->dbAdapter = $serviceManager->getServiceLocator()->get($this->dbAdapter);
        }
    }
public function setServiceLocator(ServiceLocatorInterface $serviceManager)
    {
        if (!$this->dbAdapter instanceof DbAdapter) {
            $this->dbAdapter = $serviceManager->getServiceLocator()->get($this->dbAdapter);
        }
    }
public function setServiceLocator ( ServiceLocatorInterface $ serviceManager ) { if ( ! $ this -> dbAdapter instanceof DbAdapter ) { $ this -> dbAdapter = $ serviceManager -> getServiceLocator ( ) -> get ( $ this -> dbAdapter ) ; } }
Use Service Manager to inject database adapter

@see \Zend\ServiceManager\ServiceLocatorAwareInterface::setServiceLocator()
@param ServiceLocatorInterface $serviceManager
Use Service Manager to inject database adapter