protected function syndicateFeedItems(array $items)
    {
        $messages = array();
        foreach ($items as $item) {
            $messages[] = $this->formatter->format($item);
        }

        foreach ($this->targets as $connection => $targets) {
            $this->getEventQueue($connection)->then(
                function($queue) use ($targets, $messages) {
                    foreach ($targets as $target) {
                        foreach ($messages as $message) {
                            $queue->ircPrivmsg($target, $message);
                        }
                    }
                }
            );
        }
    }
protected function syndicateFeedItems(array $items)
    {
        $messages = array();
        foreach ($items as $item) {
            $messages[] = $this->formatter->format($item);
        }

        foreach ($this->targets as $connection => $targets) {
            $this->getEventQueue($connection)->then(
                function($queue) use ($targets, $messages) {
                    foreach ($targets as $target) {
                        foreach ($messages as $message) {
                            $queue->ircPrivmsg($target, $message);
                        }
                    }
                }
            );
        }
    }
protected function syndicateFeedItems ( array $ items ) { $ messages = array ( ) ; foreach ( $ items as $ item ) { $ messages [ ] = $ this -> formatter -> format ( $ item ) ; } foreach ( $ this -> targets as $ connection => $ targets ) { $ this -> getEventQueue ( $ connection ) -> then ( function ( $ queue ) use ( $ targets , $ messages ) { foreach ( $ targets as $ target ) { foreach ( $ messages as $ message ) { $ queue -> ircPrivmsg ( $ target , $ message ) ; } } } ) ; } }
Syndicates a given list of feed items to all targets.

@param \Zend\Feed\Reader\Entry\EntryInterface[] $items
Syndicates a given list of feed items to all targets .