Hub
in package
implements
Hub
Interfaces, Classes and Traits
Table of Contents
- $container : Container|null
- The container implementation.
- $pipelines : array<string|int, mixed>
- All of the available pipelines.
- __construct() : void
- Create a new Hub instance.
- defaults() : void
- Define the default named pipeline.
- pipe() : mixed
- Send an object through one of the available pipelines.
- pipeline() : void
- Define a new named pipeline.
Properties
$container
The container implementation.
protected
Container|null
$container
$pipelines
All of the available pipelines.
protected
array<string|int, mixed>
$pipelines
= []
Methods
__construct()
Create a new Hub instance.
public
__construct([Container|null $container = null ]) : void
Parameters
- $container : Container|null = null
Return values
void —defaults()
Define the default named pipeline.
public
defaults(Closure $callback) : void
Parameters
- $callback : Closure
Return values
void —pipe()
Send an object through one of the available pipelines.
public
pipe(mixed $object[, string|null $pipeline = null ]) : mixed
Parameters
- $object : mixed
- $pipeline : string|null = null
Return values
mixed —pipeline()
Define a new named pipeline.
public
pipeline(string $name, Closure $callback) : void
Parameters
- $name : string
- $callback : Closure