public function onFrontArtwork(ArtworkEvent $event) { if ($this->skipArtwork) { return; } if ($event->getPathname()) { $this->candidates[] = $event->getPathname(); } }
public function onFrontArtwork(ArtworkEvent $event) { if (!$event->getPathname()) { throw new InvalidArgumentException('Artwork missing'); } $this->output->writeln(sprintf(' <info>> Front artwork</info>')); }