Remove the 'on_connection_initialized' client option (useless in the vast majority of cases).

This commit is contained in:
Daniele Alessandri
2011-03-18 21:47:52 +01:00
parent 743feb0634
commit e5ff0ab992
2 changed files with 0 additions and 13 deletions
-6
View File
@@ -59,12 +59,6 @@ class Client {
private function createConnection($parameters) {
$connection = $this->_schemes->newConnection($parameters);
$this->pushInitCommands($connection);
$callback = $this->_options->on_connection_initialized;
if ($callback !== null) {
$callback($this, $connection);
}
return $connection;
}
-7
View File
@@ -22,13 +22,6 @@ class ClientOptions {
self::$_sharedOptions = array(
'profile' => new ClientProfile(),
'key_distribution' => new ClientKeyDistribution(),
'on_connection_initialized' => new CustomOption(array(
'validate' => function($value) {
if (is_callable($value)) {
return $value;
}
},
)),
'connections' => new CustomOption(array(
'default' => function() {
return new ConnectionSchemes();