Pipeline
class Pipeline implements Pipeline (View source)
Properties
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. |
Methods
void | __construct(Container $container) 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. | |
Closure | getSlice() Get a Closure that represents a slice of the application onion. | |
Closure | getInitialSlice(Closure $destination) Get the initial slice to begin the stack call. | |
array | parsePipeString(string $pipe) Parse full pipe string to get name and parameters. |
Details
void __construct(Container $container)
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.
protected Closure getSlice()
Get a Closure that represents a slice of the application onion.
protected Closure getInitialSlice(Closure $destination)
Get the initial slice to begin the stack call.
protected array parsePipeString(string $pipe)
Parse full pipe string to get name and parameters.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Pipeline/Pipeline.html