
| Current Path : /var/www/html/rocksensor/web/core/lib/Drupal/Core/Queue/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php |
<?php
namespace Drupal\Core\Queue;
use Drupal\Core\Database\Connection;
/**
* Defines the queue factory for the database backend.
*/
class QueueDatabaseFactory implements QueueFactoryInterface {
/**
* The database connection.
*
* @var \Drupal\Core\Database\Connection
*/
protected $connection;
/**
* Constructs this factory object.
*
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the queue table.
*/
public function __construct(Connection $connection) {
$this->connection = $connection;
}
/**
* {@inheritdoc}
*/
public function get($name) {
return new DatabaseQueue($name, $this->connection);
}
}