Hub
class Hub implements Hub (View source)
Properties
protected Container|null | $container | The container implementation. |
|
protected array | $pipelines | All of the available pipelines. |
Methods
void
mixed
pipe(mixed $object, string|null $pipeline = null)
Send an object through one of the available pipelines.
Details
void
__construct(Container $container = null)
Create a new Hub instance.
void
defaults(Closure $callback)
Define the default named pipeline.
void
pipeline(string $name, Closure $callback)
Define a new named pipeline.
mixed
pipe(mixed $object, string|null $pipeline = null)
Send an object through one of the available pipelines.