Skip to content

Commit

Permalink
upgrade Routablesubject to allow removal of all observers
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneroudeix committed May 2, 2017
1 parent 06d0ce2 commit 2c92bbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "domraider/rxnet",
"description": "Rx connector for PHP",
"version": "0.6.2",
"version": "0.6.3",
"keywords": [
"rabbit",
"queue",
Expand Down
5 changes: 5 additions & 0 deletions src/Rxnet/Routing/RoutableSubject.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,9 @@ public function setLabels($labels)
{
$this->labels = $labels;
}

public function removeObservers()
{
$this->observers = [];
}
}

0 comments on commit 2c92bbe

Please sign in to comment.