/** * @param ScrapeUrlEvent $event */ public function onScrapeNextUrl(ScrapeUrlEvent $event) { $this->queueManager->add(ScrapeUrlExecutor::NAME, [$event->getScraper()->getId(), $event->getUrl()]); }
/** * @param ScrapeUrlEvent $event */ public function onScrapeNextUrl(ScrapeUrlEvent $event) { $this->logger->debug(sprintf('⇒ next url: %s', (string) $event->getUrl())); }
public function onScrapeNextUrl(ScrapeUrlEvent $event) { $this->output->writeln(sprintf('<options=bold>⇒ next url</>: <comment>%s</comment>', (string) $event->getUrl())); }