public function initDatabase(array $config) { $dbAdapter = new DbAdapter($config['db']); GlobalAdapterFeature::setStaticAdapter($dbAdapter); return $dbAdapter; }