File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/MySQLReplication/Event Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1818 "ext-bcmath" : " *" ,
1919 "doctrine/dbal" : " ^2.5" ,
2020 "doctrine/collections" : " ^1.3" ,
21- "symfony/event-dispatcher" : " ^2.8|^3.1|^4.0" ,
22- "symfony/dependency-injection" : " ^2.8|^3.1|^4.0" ,
21+ "symfony/event-dispatcher" : " ^2.8|^3.1|^4.0|^5.0 " ,
22+ "symfony/dependency-injection" : " ^2.8|^3.1|^4.0|^5.0 " ,
2323 "psr/simple-cache" : " ^1.0"
2424 },
2525 "require-dev" : {
Original file line number Diff line number Diff line change 55
66use JsonSerializable ;
77use MySQLReplication \Event \EventInfo ;
8- use Symfony \Component \EventDispatcher \Event ;
8+ use Symfony \Component \EventDispatcher \GenericEvent ;
99
1010/**
1111 * @see https://dev.mysql.com/doc/internals/en/event-meanings.html
1212 */
13- abstract class EventDTO extends Event implements JsonSerializable
13+ abstract class EventDTO extends GenericEvent implements JsonSerializable
1414{
1515 protected $ eventInfo ;
1616
@@ -28,4 +28,4 @@ public function getEventInfo(): EventInfo
2828 abstract public function getType (): string ;
2929
3030 abstract public function __toString (): string ;
31- }
31+ }
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ private function filterDummyMariaDbEvents(QueryDTO $queryDTO): ?QueryDTO
129129 private function dispatch (EventDTO $ eventDTO = null ): void
130130 {
131131 if (null !== $ eventDTO ) {
132- $ this ->eventDispatcher ->dispatch ($ eventDTO ->getType (), $ eventDTO );
132+ $ this ->eventDispatcher ->dispatch ($ eventDTO, $ eventDTO ->getType ());
133133 }
134134 }
135135}
You can’t perform that action at this time.
0 commit comments