function PackageManagerUpdateProcessor::__construct
Same name and namespace in other branches
- 11.x core/modules/package_manager/src/PackageManagerUpdateProcessor.php \Drupal\package_manager\PackageManagerUpdateProcessor::__construct()
Constructs an UpdateProcessor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory.
\Drupal\update\UpdateFetcherInterface $update_fetcher: The update fetcher service.
\Drupal\Core\State\StateInterface $state_store: The state service.
\Drupal\Core\PrivateKey $private_key: The private key factory service.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key/value factory.
\Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $key_value_expirable_factory: The expirable key/value factory.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides UpdateProcessor::__construct
File
-
core/
modules/ package_manager/ src/ PackageManagerUpdateProcessor.php, line 35
Class
- PackageManagerUpdateProcessor
- Extends the Update Status update processor allow fetching any project.
Namespace
Drupal\package_managerCode
public function __construct(ConfigFactoryInterface $config_factory, QueueFactory $queue_factory, UpdateFetcherInterface $update_fetcher, StateInterface $state_store, PrivateKey $private_key, KeyValueFactoryInterface $key_value_factory, KeyValueExpirableFactoryInterface $key_value_expirable_factory, TimeInterface $time) {
parent::__construct(...func_get_args());
$this->fetchQueue = $queue_factory->get('package_manager.update_fetch_tasks');
$this->tempStore = $key_value_expirable_factory->get('package_manager.update');
$this->fetchTaskStore = $key_value_factory->get('package_manager.update_fetch_task');
$this->availableReleasesTempStore = $key_value_expirable_factory->get('package_manager.update_available_releases');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.