diff --git a/Doctrine/EventListener.php b/Doctrine/EventListener.php index a51c33d63..81db0810f 100644 --- a/Doctrine/EventListener.php +++ b/Doctrine/EventListener.php @@ -62,9 +62,6 @@ abstract class Doctrine_EventListener implements Doctrine_EventListener_Interfac public function onCollectionDelete(Doctrine_Collection $collection) { } public function onPreCollectionDelete(Doctrine_Collection $collection) { } } -/** - * an emtpy listener all components use this by default - */ -class EmptyEventListener extends Doctrine_EventListener { } + ?> diff --git a/Doctrine/EventListener/Empty.php b/Doctrine/EventListener/Empty.php new file mode 100644 index 000000000..7f5be718c --- /dev/null +++ b/Doctrine/EventListener/Empty.php @@ -0,0 +1,6 @@ + diff --git a/Doctrine/Manager.php b/Doctrine/Manager.php index ddec5a6c8..343d02ba8 100644 --- a/Doctrine/Manager.php +++ b/Doctrine/Manager.php @@ -86,7 +86,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera Doctrine::ATTR_CACHE => Doctrine::CACHE_NONE, Doctrine::ATTR_BATCH_SIZE => 5, Doctrine::ATTR_COLL_LIMIT => 5, - Doctrine::ATTR_LISTENER => new EmptyEventListener(), + Doctrine::ATTR_LISTENER => new Doctrine_EventListener_Empty(), Doctrine::ATTR_PK_COLUMNS => array("id"), Doctrine::ATTR_PK_TYPE => Doctrine::INCREMENT_KEY, Doctrine::ATTR_LOCKMODE => 1,