You are here

class UniqueQueueDatabaseFactory in Queue Unique 8.2

Factory class for generating unique database queues.

Hierarchy

Expanded class hierarchy of UniqueQueueDatabaseFactory

1 string reference to 'UniqueQueueDatabaseFactory'
queue_unique.services.yml in ./queue_unique.services.yml
queue_unique.services.yml
1 service uses UniqueQueueDatabaseFactory
queue_unique.database in ./queue_unique.services.yml
Drupal\queue_unique\UniqueQueueDatabaseFactory

File

src/UniqueQueueDatabaseFactory.php, line 10

Namespace

Drupal\queue_unique
View source
class UniqueQueueDatabaseFactory extends QueueDatabaseFactory {

  /**
   * {@inheritdoc}
   */
  public function get($name) {
    return new UniqueDatabaseQueue($name, $this->connection);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
QueueDatabaseFactory::$connection protected property The database connection.
QueueDatabaseFactory::__construct public function Constructs this factory object.
UniqueQueueDatabaseFactory::get public function Constructs a new queue object for a given name. Overrides QueueDatabaseFactory::get