class
Illuminate
/
Pipeline
/
Pipeline
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Pipeline
Implements
Properties
protected
$passable mixed
The object being passed through the pipeline.
Default: null
protected
$pipes array
The array of class pipes.
Default: []
protected
$method string
The method to call on each pipe.
Default: 'handle'
Methods
public
__construct ( Container $container ) : void
Create a new class instance.
Parameters
- $container Container |null
public
send ( $passable ) : $this
Set the object being sent through the pipeline.
Parameters
- $passable mixed
public
through ( $pipes ) : $this
Set the array of pipes.
Parameters
- $pipes array|mixed
public
pipe ( $pipes ) : $this
Push additional pipes onto the pipeline.
Parameters
- $pipes array|mixed
public
via ( $method ) : $this
Set the method to call on the pipes.
Parameters
- $method string
public
then ( Closure $destination ) : mixed
Run the pipeline with a final destination callback.
Parameters
- $destination Closure
public
thenReturn ( ) : mixed
Run the pipeline and return the result.
protected
prepareDestination ( Closure $destination ) : Closure
Get the final piece of the Closure onion.
Parameters
- $destination Closure
protected
parsePipeString ( $pipe ) : array
Parse full pipe string to get name and parameters.
Parameters
- $pipe string
protected
pipes ( ) : array
Get the array of configured pipes.
public
setContainer ( Container $container ) : $this
Set the container instance.
Parameters
- $container Container
protected
handleCarry ( $carry ) : mixed
Handle the value returned from each pipe before passing it to the next.
Parameters
- $carry mixed