function ItemsImporter::__construct

Same name in other branches
  1. 9 core/modules/aggregator/src/ItemsImporter.php \Drupal\aggregator\ItemsImporter::__construct()

Constructs an Importer object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\aggregator\Plugin\AggregatorPluginManager $fetcher_manager: The aggregator fetcher plugin manager.

\Drupal\aggregator\Plugin\AggregatorPluginManager $parser_manager: The aggregator parser plugin manager.

\Drupal\aggregator\Plugin\AggregatorPluginManager $processor_manager: The aggregator processor plugin manager.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

core/modules/aggregator/src/ItemsImporter.php, line 64

Class

ItemsImporter
Defines an importer of aggregator items.

Namespace

Drupal\aggregator

Code

public function __construct(ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager, LoggerInterface $logger) {
    $this->fetcherManager = $fetcher_manager;
    $this->processorManager = $processor_manager;
    $this->parserManager = $parser_manager;
    $this->config = $config_factory->get('aggregator.settings');
    $this->logger = $logger;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.