public Cron::__construct(ModuleHandlerInterface $module_handler, LockBackendInterface $lock, QueueFactory $queue_factory, StateInterface $state, AccountSwitcherInterface $account_switcher, LoggerInterface $logger, QueueWorkerManagerInterface $queue_manager)
Constructs a cron object.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler
\Drupal\Core\Lock\LockBackendInterface $lock: The lock service.
\Drupal\Core\Queue\QueueFactory $queue_factory: The queue service.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switching service.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Queue\QueueWorkerManagerInterface: The queue plugin manager.
public function __construct(ModuleHandlerInterface $module_handler, LockBackendInterface $lock, QueueFactory $queue_factory, StateInterface $state, AccountSwitcherInterface $account_switcher, LoggerInterface $logger, QueueWorkerManagerInterface $queue_manager) { $this->moduleHandler = $module_handler; $this->lock = $lock; $this->queueFactory = $queue_factory; $this->state = $state; $this->accountSwitcher = $account_switcher; $this->logger = $logger; $this->queueManager = $queue_manager; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cron.php/function/Cron::__construct/8.1.x