Reduce lines of code.

This commit is contained in:
Daniele Alessandri
2011-01-09 11:58:45 +01:00
parent d1282261b8
commit f1488534b6
+1 -5
View File
@@ -119,11 +119,7 @@ class Client {
"Invalid connection alias: '$connectionAlias'"
);
}
$newClient = new Client();
$newClient->setupClient($this->_options);
$newClient->setConnection($connection);
return $newClient;
return new Client($connection, $this->_options);
}
public function connect() {