Hub
class Hub implements Hub
Properties
| protected Container|null | $container | The container implementation. |
|
| protected array | $pipelines | All of the available pipelines. |
Methods
Send an object through one of the available pipelines.
Get the container instance used by the hub.
Details
at line 27
__construct(Container|null $container = null)
Create a new Hub instance.
at line 40
void
defaults(Closure $callback)
Define the default named pipeline.
Boot-only. The callback persists on the singleton Hub for the worker lifetime and is executed on every subsequent Hub::pipe() call that does not specify a pipeline name. Per-request registration races across coroutines.
at line 52
void
pipeline(string $name, Closure $callback)
Define a new named pipeline.
Boot-only. The callback persists on the singleton Hub for the worker lifetime and is executed on every subsequent Hub::pipe() call for this name. Per-request registration races across coroutines.
at line 60
mixed
pipe(mixed $object, string|null $pipeline = null)
Send an object through one of the available pipelines.
at line 78
Container|null
getContainer()
Get the container instance used by the hub.