public function onAudio(AudioEvent $event) { if ($this->skipAudio) { return; } if ($event->getPathname()) { $this->candidates[] = $event->getPathname(); } }
public function onAudio(AudioEvent $event) { if (!$event->getPathname()) { throw new InvalidArgumentException('Audio missing'); } $this->output->writeln(sprintf(' <info>> Audio</info>')); }