Heratio Framework API Reference

QueueJobRegistry
in package

Static registry mapping job_type strings to handler classes.

Plugins register handlers in their initialize() method: QueueJobRegistry::register('ingest:commit', QueueCliTaskHandler::class);

Table of Contents

Methods

all()  : array<string, string>
Get all registered job types.
clear()  : void
Clear registry (for testing).
has()  : bool
Check if a handler is registered for a job type.
register()  : void
Register a handler class for a job type.
resolve()  : QueueJobInterface|null
Resolve a job type to its handler instance.

Methods

all()

Get all registered job types.

public static all() : array<string, string>
Return values
array<string, string>

has()

Check if a handler is registered for a job type.

public static has(string $jobType) : bool
Parameters
$jobType : string
Return values
bool

register()

Register a handler class for a job type.

public static register(string $jobType, string $handlerClass) : void
Parameters
$jobType : string

The job type identifier (e.g. 'ingest:commit')

$handlerClass : string

Fully-qualified class implementing QueueJobInterface


        
On this page

Search results