public function setAdapter(AdapterInterface $adapter) { $this->adapter = $adapter; $this->adapter->loadConfig(); }