/** * @param SuccessScrapeItemEvent $e */ public function onScrapeItemSuccess(SuccessScrapeItemEvent $e) { /** @var ScrapedItemBag $item */ $item = $e->getItem(); $this->rawData = $item->getOriginalData(); $this->setRawData($e->getResult()); }
/** * @param SuccessItemEvent $event */ public function onItemSuccess(SuccessItemEvent $event) { $this->logger->info(sprintf('✎ updated: %s', (string) $event->getItem())); }
/** * @param SuccessItemEvent $event */ public function onItemSuccess(SuccessItemEvent $event) { $this->output->writeln(sprintf('<info>✎ updated</info>: <comment>%s</comment>', (string) $event->getItem())); }