Skip to content

Commit bd6d4f2

Browse files
author
julien
committed
fix(event): change signature eventDispatcher
1 parent 24bbba5 commit bd6d4f2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Event/EventBusDispatcher.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Twc\BusBundle\Event;
44

5-
use Twc\BusBundle\Event\Interfaces\Event;
65
use Twc\BusBundle\Event\Interfaces\EventBus;
76

87
class EventBusDispatcher implements EventBus
@@ -16,7 +15,7 @@ public function __construct(iterable $handlers)
1615
}
1716
}
1817

19-
public function dispatch(Event $event): void
18+
public function dispatch($event): void
2019
{
2120
$eventClass = get_class($event);
2221

@@ -29,7 +28,5 @@ public function dispatch(Event $event): void
2928
$handler->handle($event);
3029
}
3130
}
32-
3331
}
34-
35-
}
32+
}

0 commit comments

Comments
 (0)