protected function loadAdapters() { foreach ($this->moduleOptions->getAdapters() as $adapter) { if (!isset($this->adapters[$adapter])) { $this->adapters[$adapter] = $this->serviceLocator->get($adapter); if (!$this->adapters[$adapter] instanceof Adapter\AdapterInterface) { throw new Exception\RuntimeException(sprintf('%s does not implement AdapterInterface', get_class($this->adapters[$adapter]))); } } } }