ItemsImporter::__construct

public ItemsImporter::__construct(ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager, LoggerInterface $logger)

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;
}
doc_Drupal
2016-10-29 09:21:23
Comments
Leave a Comment

Please login to continue.