public function CronHandler::__construct in Instagram Feeds 8
The CronHandler service constructor.
File
- src/
CronHandler.php, line 86
Class
- CronHandler
- Instagram Feeds Cron Handler Service.
Namespace
Drupal\instagram_feedsCode
public function __construct(ConfigFactoryInterface $config_factory, Client $http_client, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EventDispatcherInterface $event_dispatcher, Token $token, LoggerChannelFactoryInterface $logger_factory) {
$config = $config_factory
->get(self::SETTINGS);
$this->config = $config;
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->mediaStorage = $entity_type_manager
->getStorage('media');
$this->eventDispatcher = $event_dispatcher;
$this
->setHttpClient($http_client)
->setToken($token)
->setLogger($logger_factory);
}