Drupal 8  8.0.2
DefaultFetcher Class Reference
Inheritance diagram for DefaultFetcher:

Public Member Functions

 __construct (ClientFactory $http_client_factory, LoggerInterface $logger)
 
- Public Member Functions inherited from FetcherInterface
 fetch (FeedInterface $feed)
 

Static Public Member Functions

static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 

Protected Attributes

 $httpClientFactory
 
 $logger
 

Detailed Description

Defines a default fetcher implementation.

Uses the http_client service to download the feed.

( id = "aggregator", title = ("Default fetcher"), description = ("Downloads data from a URL using Drupal's HTTP request handler.") )

Constructor & Destructor Documentation

__construct ( ClientFactory  $http_client_factory,
LoggerInterface  $logger 
)

Constructs a DefaultFetcher object.

Parameters
\Drupal\Core\Http\ClientFactory$http_client_factoryA Guzzle client object.
\Psr\Log\LoggerInterface$loggerA logger instance.

References Drupal\logger().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition 
)
static

{Creates an instance of the plugin.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the plugin.
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin ID for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
Returns
static Returns an instance of this plugin.
}

Implements ContainerFactoryPluginInterface.


The documentation for this class was generated from the following file: