lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php 1 location
|
@@ 186-189 (lines=4) @@
|
| 183 |
|
$this->connections['slave'] = $this->_conn = $this->connectTo($connectionName); |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
if ($this->_eventManager->hasListeners(Events::postConnect)) { |
| 187 |
|
$eventArgs = new ConnectionEventArgs($this); |
| 188 |
|
$this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
return true; |
| 192 |
|
} |
lib/Doctrine/DBAL/Sharding/PoolingShardConnection.php 1 location
|
@@ 220-223 (lines=4) @@
|
| 217 |
|
|
| 218 |
|
$this->_conn = $this->activeConnections[$this->activeShardId] = $this->connectTo($this->activeShardId); |
| 219 |
|
|
| 220 |
|
if ($this->_eventManager->hasListeners(Events::postConnect)) { |
| 221 |
|
$eventArgs = new ConnectionEventArgs($this); |
| 222 |
|
$this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs); |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
return true; |
| 226 |
|
} |
lib/Doctrine/DBAL/Connection.php 1 location
|
@@ 385-388 (lines=4) @@
|
| 382 |
|
$this->beginTransaction(); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
if ($this->_eventManager->hasListeners(Events::postConnect)) { |
| 386 |
|
$eventArgs = new Event\ConnectionEventArgs($this); |
| 387 |
|
$this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs); |
| 388 |
|
} |
| 389 |
|
|
| 390 |
|
return true; |
| 391 |
|
} |