master

laravel/framework

Last updated at: 29/12/2023 09:24

Pipeline.php

TLDR

This file defines the Pipeline class, which is a facade for the Illuminate\Pipeline\Pipeline class. It provides static methods for handling pipelines.

Methods

send

This method sets the data or object to be sent through the pipeline.

through

This method sets the array of middleware to be run in the pipeline.

pipe

This method adds a single middleware to the pipeline.

via

This method sets the method to be executed on the destination.

then

This method sets the destination for the pipeline execution and returns the result.

thenReturn

This method sets the destination for the pipeline execution and returns the pipeline instance itself.

setContainer

This method sets the container instance for the pipeline.

when

This method conditionally applies a callback on the pipeline based on a given value.

unless

This method conditionally applies a callback on the pipeline based on a given value.

Classes

No classes found in the code.

<?php

namespace Illuminate\Support\Facades;

/**
 * @method static \Illuminate\Pipeline\Pipeline send(mixed $passable)
 * @method static \Illuminate\Pipeline\Pipeline through(array|mixed $pipes)
 * @method static \Illuminate\Pipeline\Pipeline pipe(array|mixed $pipes)
 * @method static \Illuminate\Pipeline\Pipeline via(string $method)
 * @method static mixed then(\Closure $destination)
 * @method static mixed thenReturn()
 * @method static \Illuminate\Pipeline\Pipeline setContainer(\Illuminate\Contracts\Container\Container $container)
 * @method static \Illuminate\Pipeline\Pipeline|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
 * @method static \Illuminate\Pipeline\Pipeline|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
 *
 * @see \Illuminate\Pipeline\Pipeline
 */
class Pipeline extends Facade
{
    /**
     * Indicates if the resolved instance should be cached.
     *
     * @var bool
     */
    protected static $cached = false;

    /**
     * Get the registered name of the component.
     *
     * @return string
     */
    protected static function getFacadeAccessor()
    {
        return 'pipeline';
    }
}