Ayaline\Bundle\ComposerBundle\Consumer\Step\AbstractStep::getChannels PHP Method

getChannels() protected method

Extracts a channel name from a ConsumerEvent.
protected getChannels ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : array
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
return array
    protected function getChannels(ConsumerEvent $event)
    {
        $message = $event->getMessage();
        return [$message->getValue('channelName')];
    }