protected function createAdapter($config) { if (isset($config['private_key'])) { $config['privateKey'] = $config['private_key']; unset($config['private_key']); } return new SftpAdapter($config); }