1
0
mirror of synced 2024-12-14 07:06:04 +03:00

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

This commit is contained in:
jackbravo 2007-08-09 22:16:33 +00:00
parent 0eb8a42d00
commit 0a50b95fed

View File

@ -139,29 +139,29 @@ class Doctrine_EventListener_Chain extends Doctrine_Access implements Doctrine_E
}
}
/**
* onClose
* postClose
* an event invoked after Doctrine_Connection is closed
*
* @param Doctrine_Event $event
* @return void
*/
public function onClose(Doctrine_Event $event)
public function postClose(Doctrine_Event $event)
{
foreach ($this->listeners as $listener) {
$listener->onClose($event);
$listener->postClose($event);
}
}
/**
* onClose
* preClose
* an event invoked before Doctrine_Connection is closed
*
* @param Doctrine_Event $event
* @return void
*/
public function onPreClose(Doctrine_Event $event)
public function preClose(Doctrine_Event $event)
{
foreach ($this->listeners as $listener) {
$listener->onPreClose($event);
$listener->preClose($event);
}
}
/**