Pipeline
class Pipeline extends Pipeline
This extended pipeline catches any exceptions that occur during each slice.
The exceptions are converted to HTTP responses for proper middleware handling.
Properties
protected Container | $container | The container implementation. |
from Pipeline |
protected mixed | $passable | The object being passed through the pipeline. |
from Pipeline |
protected array | $pipes | The array of class pipes. |
from Pipeline |
protected string | $method | The method to call on each pipe. |
from Pipeline |
Methods
array
parsePipeString(string $pipe)
Parse full pipe string to get name and parameters.
from
Pipeline
mixed
Details
in
Pipeline at line 57
$this
send(mixed $passable)
Set the object being sent through the pipeline.
in
Pipeline at line 70
$this
through(array|mixed $pipes)
Set the array of pipes.
in
Pipeline at line 83
$this
via(string $method)
Set the method to call on the pipes.
in
Pipeline at line 96
mixed
then(Closure $destination)
Run the pipeline with a final destination callback.
at line 26
protected Closure
prepareDestination(Closure $destination)
Get the final piece of the Closure onion.
at line 44
protected Closure
carry()
Get a Closure that represents a slice of the application onion.
in
Pipeline at line 159
protected array
parsePipeString(string $pipe)
Parse full pipe string to get name and parameters.
at line 72
protected mixed
handleException(mixed $passable, Exception $e)
Handle the given exception.