public function setConfig($config) { $this->unregisterAutoload(); $this->config = $config; $this->registerAutoload(); }