function QueueFactory::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Queue/QueueFactory.php \Drupal\Core\Queue\QueueFactory::__construct()
  2. 10 core/lib/Drupal/Core/Queue/QueueFactory.php \Drupal\Core\Queue\QueueFactory::__construct()
  3. 9 core/lib/Drupal/Core/Queue/QueueFactory.php \Drupal\Core\Queue\QueueFactory::__construct()
  4. 8.9.x core/lib/Drupal/Core/Queue/QueueFactory.php \Drupal\Core\Queue\QueueFactory::__construct()

Constructs QueueFactory object.

Parameters

\Drupal\Core\Site\Settings $settings: The site settings.

\Psr\Container\ContainerInterface $container: A service locator that contains the queue services.

File

core/lib/Drupal/Core/Queue/QueueFactory.php, line 36

Class

QueueFactory
Defines the queue factory.

Namespace

Drupal\Core\Queue

Code

public function __construct(Settings $settings, #[AutowireLocator('queue_factory')] protected ContainerInterface $container) {
  $this->settings = $settings;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.