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
|
@@ 381-384 (lines=4) @@
|
378 |
|
$this->beginTransaction(); |
379 |
|
} |
380 |
|
|
381 |
|
if ($this->_eventManager->hasListeners(Events::postConnect)) { |
382 |
|
$eventArgs = new Event\ConnectionEventArgs($this); |
383 |
|
$this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs); |
384 |
|
} |
385 |
|
|
386 |
|
return true; |
387 |
|
} |