class Illuminate / Pipeline / Pipeline

Pipeline

Implements

Properties

protected

$container Container |null

The container implementation.

Default: null
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

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

public

thenReturn ( ) : mixed

Run the pipeline and return the result.

protected

prepareDestination ( Closure $destination ) : Closure

Get the final piece of the Closure onion.

Parameters

protected

carry ( ) : Closure

Get a Closure that represents a slice of the application onion.

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.

protected

getContainer ( ) : Container

Get the container instance.

public

setContainer ( Container $container ) : $this

Set the container instance.

Parameters

protected

handleCarry ( $carry ) : mixed

Handle the value returned from each pipe before passing it to the next.

Parameters

  • $carry mixed
protected

handleException ( $passable , Throwable $e ) : mixed

Handle the given exception.

Parameters