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
1 2 3 4 5 6 7 | 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 ; } |
Please login to continue.