You are here

public function ItemsImporter::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 69
Contains \Drupal\aggregator\ItemsImporter.

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;
}