class
Illuminate
/
Pipeline
/
Hub
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Hub
Implements
Properties
protected
$pipelines array
All of the available pipelines.
Default: []
Methods
public
__construct ( Container $container ) : void
Create a new Hub instance.
Parameters
- $container Container |null
public
defaults ( Closure $callback ) : void
Define the default named pipeline.
Parameters
- $callback Closure
public
pipeline ( $name , Closure $callback ) : void
Define a new named pipeline.
Parameters
- $name string
- $callback Closure
public
pipe ( $object , $pipeline ) : mixed
Send an object through one of the available pipelines.
Parameters
- $object mixed
- $pipeline string|null