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: use provided event dispatcher #67

Closed misaert closed 4 years ago

misaert commented 4 years ago

Before the fix, an error occurred:

TypeError: Argument 3 passed to MySQLReplication\Event\Event::__construct() must be an instance of Symfony\Component\EventDispatcher\EventDispatcher, null given, called

Because Event class is instanciated with property $this->eventDispatcher but was only initialised when null is used in the constructor of MySQLReplicationFactory.

krowinski commented 4 years ago

wow indeed I f** up here tx for fix and test!