original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: 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
docstring_tokens: Polls an individual feed for new content to syndicate to channels or users .