krowinski / php-mysql-replication

Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.
MIT License
323 stars 98 forks source link

fix: change for event dispatcher interface to keep logic from MySQLReplicationFactory #69

Closed misaert closed 4 years ago

misaert commented 4 years ago

It is useful to keep the same logic with EventDispatcherInterface in Event class because it is this interface for MySQLReplicationFactory class. It prevents this error for example:

Argument 3 passed to MySQLReplication\Event\Event::__construct() must be an instance of Symfony\Component\EventDispatcher\EventDispatcher, instance of Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher given
krowinski commented 4 years ago

tx