We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6232d52 commit 565ced9Copy full SHA for 565ced9
src/Proxy.php
@@ -82,6 +82,11 @@ private function write_callback($ch, $str){
82
// https://github.com/laravel/framework/blob/5.0/src/Illuminate/Events/Dispatcher.php#L72
83
private $listeners = array();
84
85
+ // Proxy instance itself acts as a dispatcher!
86
+ public function getEventDispatcher(){
87
+ return $this;
88
+ }
89
+
90
public function addListener($event, $callback, $priority = 0){
91
$this->listeners[$event][$priority][] = $callback;
92
}
0 commit comments