From 0a50b95fed12fae5c7fa608b90de7c1343f39bb9 Mon Sep 17 00:00:00 2001 From: jackbravo Date: Thu, 9 Aug 2007 22:16:33 +0000 Subject: [PATCH] Unified event listener methods for close() method: preClose() postClose() --- lib/Doctrine/EventListener/Chain.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/EventListener/Chain.php b/lib/Doctrine/EventListener/Chain.php index a158112ec..9c5f964d5 100644 --- a/lib/Doctrine/EventListener/Chain.php +++ b/lib/Doctrine/EventListener/Chain.php @@ -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); } } /**