Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 2.9 KB

File metadata and controls

44 lines (30 loc) · 2.9 KB

Advanced documentation map

Use this index when you need to customize internals: custom middleware, adapters, queue providers, tooling, or diagnostics.

Configuration and infrastructure

Middleware, envelopes, and handlers

Queue adapters and interoperability

Tooling and diagnostics

Internals and contribution

  • Internals guide — local QA tooling (PHPUnit, Infection, Psalm, Rector, ComposerRequireChecker).

Queue provider registry

When multiple queue names share infrastructure, rely on QueueProviderInterface:

  • A queue name is passed to QueueProviderInterface::get($queueName) and resolved into a configured QueueInterface instance.
  • Default implementation (AdapterFactoryQueueProvider) enforces a strict registry defined in yiisoft/queue.queues. Unknown names throw QueueNotFoundException.
  • Alternative providers include:
    • PredefinedQueueProvider — accepts a pre-built map of queue name → QueueInterface instance.
    • QueueFactoryProvider — creates queue objects lazily from yiisoft/factory definitions.
    • CompositeQueueProvider — aggregates multiple providers and selects the first that knows the queue name.
  • Implement QueueProviderInterface to introduce custom registries or fallback strategies, then register the implementation in DI.