class Illuminate / Pipeline / Hub
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

Hub

Implements

Properties

protected

$container Container |null

The container implementation.

Default: null
protected

$pipelines array

All of the available pipelines.

Default: []

Methods

public

__construct ( Container $container ) : void

Create a new Hub instance.

Parameters

public

defaults ( Closure $callback ) : void

Define the default named pipeline.

Parameters

public

pipeline ( $name , Closure $callback ) : void

Define a new named pipeline.

Parameters

public

pipe ( $object , $pipeline ) : mixed

Send an object through one of the available pipelines.

Parameters

  • $object mixed
  • $pipeline string|null
public

getContainer ( ) : Container

Get the container instance used by the hub.

public

setContainer ( Container $container ) : $this

Set the container instance used by the hub.

Parameters