public function pollFeed($url)
    {
        $self = $this;
        $eventEmitter = $this->getEventEmitter();
        $logger = $this->getLogger();
        $logger->info('Sending request for feed URL', array('url' => $url));
        $request = new HttpRequest(array(
            'url' => $url,
            'resolveCallback' => function($data) use ($url, $self) {
                $self->processFeed($url, $data);
            },
            'rejectCallback' => function($error) use ($url, $self) {
                $self->processFailure($url, $error);
            }
        ));
        $eventEmitter->emit('http.request', array($request));
    }
public function pollFeed($url)
    {
        $self = $this;
        $eventEmitter = $this->getEventEmitter();
        $logger = $this->getLogger();
        $logger->info('Sending request for feed URL', array('url' => $url));
        $request = new HttpRequest(array(
            'url' => $url,
            'resolveCallback' => function($data) use ($url, $self) {
                $self->processFeed($url, $data);
            },
            'rejectCallback' => function($error) use ($url, $self) {
                $self->processFailure($url, $error);
            }
        ));
        $eventEmitter->emit('http.request', array($request));
    }
public function pollFeed ( $ url ) { $ self = $ this ; $ eventEmitter = $ this -> getEventEmitter ( ) ; $ logger = $ this -> getLogger ( ) ; $ logger -> info ( 'Sending request for feed URL' , array ( 'url' => $ url ) ) ; $ request = new HttpRequest ( array ( 'url' => $ url , 'resolveCallback' => function ( $ data ) use ( $ url , $ self ) { $ self -> processFeed ( $ url , $ data ) ; } , 'rejectCallback' => function ( $ error ) use ( $ url , $ self ) { $ self -> processFailure ( $ url , $ error ) ; } ) ) ; $ eventEmitter -> emit ( 'http.request' , array ( $ request ) ) ; }
Polls an individual feed for new content to syndicate to channels or
users.

This method is public so that queuePoll() can invoke it as a
callback. It should not be invoked outside of this class.

@param string $url Feed URL
Polls an individual feed for new content to syndicate to channels or users .