Commit 0a50b95f authored by jackbravo's avatar jackbravo

Unified event listener methods for close() method: preClose() postClose()

parent 0eb8a42d
...@@ -139,29 +139,29 @@ class Doctrine_EventListener_Chain extends Doctrine_Access implements Doctrine_E ...@@ -139,29 +139,29 @@ class Doctrine_EventListener_Chain extends Doctrine_Access implements Doctrine_E
} }
} }
/** /**
* onClose * postClose
* an event invoked after Doctrine_Connection is closed * an event invoked after Doctrine_Connection is closed
* *
* @param Doctrine_Event $event * @param Doctrine_Event $event
* @return void * @return void
*/ */
public function onClose(Doctrine_Event $event) public function postClose(Doctrine_Event $event)
{ {
foreach ($this->listeners as $listener) { foreach ($this->listeners as $listener) {
$listener->onClose($event); $listener->postClose($event);
} }
} }
/** /**
* onClose * preClose
* an event invoked before Doctrine_Connection is closed * an event invoked before Doctrine_Connection is closed
* *
* @param Doctrine_Event $event * @param Doctrine_Event $event
* @return void * @return void
*/ */
public function onPreClose(Doctrine_Event $event) public function preClose(Doctrine_Event $event)
{ {
foreach ($this->listeners as $listener) { foreach ($this->listeners as $listener) {
$listener->onPreClose($event); $listener->preClose($event);
} }
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment