Skip to content

Commit

Permalink
Add reset method to dispatcher
Browse files Browse the repository at this point in the history
- add a reset method that is used within tests
  • Loading branch information
Philipp Frischmuth committed Sep 10, 2012
1 parent bacdaca commit 656ccb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Erfurt/Event/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public static function getInstance()

return self::$_instance;
}

public static function reset()
{
self::$_instance = null;
}

/**
* Binds an event handler (class or object) to a specified event.
Expand Down

0 comments on commit 656ccb4

Please sign in to comment.