public function ItemsImporter::__construct in Drupal 8
Same name and namespace in other branches
- 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\aggregatorCode
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;
}