class Pipeline implements Pipeline (View source)
protected Container | $container | The container implementation. | |
protected mixed | $passable | The object being passed through the pipeline. | |
protected array | $pipes | The array of class pipes. | |
protected string | $method | The method to call on each pipe. |
void | __construct(Container $container = null) Create a new class instance. | |
$this | send(mixed $passable) Set the object being sent through the pipeline. | |
$this | through(array|mixed $pipes) Set the array of pipes. | |
$this | via(string $method) Set the method to call on the pipes. | |
mixed | then(Closure $destination) Run the pipeline with a final destination callback. | |
mixed | thenReturn() Run the pipeline and return the result. | |
Closure | prepareDestination(Closure $destination) Get the final piece of the Closure onion. | |
Closure | carry() Get a Closure that represents a slice of the application onion. | |
array | parsePipeString(string $pipe) Parse full pipe string to get name and parameters. | |
array | pipes() Get the array of configured pipes. | |
Container | getContainer() Get the container instance. | |
$this | setContainer(Container $container) Set the container instance. | |
mixed | handleCarry(mixed $carry) Handle the value returned from each pipe before passing it to the next. | |
mixed | handleException(mixed $passable, Throwable $e) Handle the given exception. |
Create a new class instance.
Set the object being sent through the pipeline.
Set the array of pipes.
Set the method to call on the pipes.
Run the pipeline with a final destination callback.
Run the pipeline and return the result.
Get the final piece of the Closure onion.
Get a Closure that represents a slice of the application onion.
Parse full pipe string to get name and parameters.
Get the array of configured pipes.
Get the container instance.
Set the container instance.
Handle the value returned from each pipe before passing it to the next.
Handle the given exception.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Pipeline/Pipeline.html