protected function setHost(array $config) { $config['host'] = isset($config['host']) ? $config['host'] : $config['hostname']; return $config; }