public function handleScheduledCommand(ScheduledCommand $command) { list($queueName, $id, $serialized) = $this->process($command); $this->implementation->getSchedulerDriver()->scheduleCommand($queueName, $id, $serialized, $command->getDateTime()); }
protected function scheduleCommand($command, \DateTimeInterface $dateTime, string $id) { $hander = new ScheduledCommandHandler($this->implementation); $hander->handleScheduledCommand(new ScheduledCommand($command, $dateTime, $id)); }