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