Skip to content

Commit 8388a5d

Browse files
committed
fix EventDispatcher is not returning $event object
1 parent 870e880 commit 8388a5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/EventDispatcher/EventDispatcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Psr\EventDispatcher\EventDispatcherInterface;
77

88
/**
9-
* Laravel does not have a built service for Psr\EventDispatcher\EventDispatcherInterface.
9+
* Laravel does not have a built-in service for \Psr\EventDispatcher\EventDispatcherInterface.
1010
* So we are implemented our own.
1111
*/
1212
class EventDispatcher implements EventDispatcherInterface
@@ -17,5 +17,7 @@ class EventDispatcher implements EventDispatcherInterface
1717
public function dispatch(object $event)
1818
{
1919
Event::dispatch($event);
20+
21+
return $event;
2022
}
2123
}

0 commit comments

Comments
 (0)