diff --git a/src/Console/StartCommand.php b/src/Console/StartCommand.php index cdac602..83eb485 100644 --- a/src/Console/StartCommand.php +++ b/src/Console/StartCommand.php @@ -72,7 +72,7 @@ public function handle() $this->info('Subscribers'); $this->table( - ['Subscriber', 'Registerd'], + ['Subscriber', 'Registered'], collect($trigger->getSubscribers()) ->transform(fn ($subscriber) => [$subscriber, '√']) ); diff --git a/src/Facades/Trigger.php b/src/Facades/Trigger.php index 5dd84d9..9e89666 100644 --- a/src/Facades/Trigger.php +++ b/src/Facades/Trigger.php @@ -12,6 +12,8 @@ namespace Huangdijia\Trigger\Facades; use Illuminate\Support\Facades\Facade; +use MySQLReplication\BinLog\BinLogCurrent; +use MySQLReplication\Event\DTO\EventDTO; /** * @see \Huangdijia\Trigger\Manager diff --git a/src/Trigger.php b/src/Trigger.php index 625f7c4..53f293f 100644 --- a/src/Trigger.php +++ b/src/Trigger.php @@ -180,7 +180,7 @@ public function isTerminated(): bool */ public function heartbeat(EventDTO $event): void { - $this->rememberCurrent($event->getEventInfo()->getBinLogCurrent()); + $this->rememberCurrent($event->getEventInfo()->binLogCurrent); } /**