public function setConfig(Config $config) { $this->config = $config; $this->getDatabase()->setConfig($config); }