class QueueService (View source)

Properties

protected Connection $connection

The database connection.

Methods

__construct(Connection $connection)

Initialize the instance.

Queue
get(string $name, array $additionalConfig = [])

Get a queue by name.

bool
exists(string $name)

Check if a queue with a specific name exists.

Details

__construct(Connection $connection)

Initialize the instance.

Parameters

Connection $connection

Queue get(string $name, array $additionalConfig = [])

Get a queue by name.

Parameters

string $name

The queue name

array $additionalConfig

additional configuration to be passed to the Zend Queue

Return Value

Queue

bool exists(string $name)

Check if a queue with a specific name exists.

Parameters

string $name

The queue name

Return Value

bool