public function onPackshotLoad(PackshotEvent $event) { $this->output->writeln(sprintf('<comment>%s</comment>', $this->getSeparator())); $this->output->writeln(sprintf('<info>+ Packshot: %s</info>', $event->getPackshot()->getName())); $this->output->writeln(sprintf(' <info>Name: %s</info>', $event->getPackshot()->getRelease()->getName())); $this->output->writeln(sprintf(' <info>Label: %s</info>', $event->getPackshot()->getRelease()->getLabel())); $this->output->writeln(sprintf(' <info>CatNo: %s</info>', $event->getPackshot()->getRelease()->getCatalogNumber())); $this->output->writeln(sprintf(' <info>Ean: %s</info>', $event->getPackshot()->getRelease()->getEan())); $this->output->writeln(sprintf(' <info>UUID: %s</info>', $event->getPackshot()->getRelease()->getUuid())); $this->output->writeln(sprintf(' <info>Release date: %s</info>', $event->getPackshot()->getRelease()->getPhysicalReleaseDate()->format('Y-m-d'))); }
public function onPackshotUnload(PackshotEvent $event) { $this->output->writeln(sprintf(' <info>+ DEBUG: Packshot unload (%s)</info>', $event->getPackshot()->getName())); }
public function onPackshotLoad(PackshotEvent $event) { $this->packshotTaskEngine = $this->packshotTaskEngineFactory->getInstance($event->getPackshot()); $this->packshotTaskEngine->startArtwork(); }
public function onPackshotLoad(PackshotEvent $event) { $id = $event->getPackshot()->getName(); $this->summary->getPackshotCounter()->add(self::OK, $id); }