public function attach(callable $stage, callable $fallback = null)
    {
        $this->storage->attach(
            $this->marshalClosure($stage),
            [
                'fallback' => is_callable($fallback) ? $this->marshalClosure($fallback) : null
            ]
        );
    }
public function attach(callable $stage, callable $fallback = null)
    {
        $this->storage->attach(
            $this->marshalClosure($stage),
            [
                'fallback' => is_callable($fallback) ? $this->marshalClosure($fallback) : null
            ]
        );
    }
public function attach ( callable $ stage , callable $ fallback = null ) { $ this -> storage -> attach ( $ this -> marshalClosure ( $ stage ) , [ 'fallback' => is_callable ( $ fallback ) ? $ this -> marshalClosure ( $ fallback ) : null ] ) ; }
Attaches a stage and assigns a fallback to the attached stage.

@param callable $stage
@param callable|null $fallback
@return void
Attaches a stage and assigns a fallback to the attached stage .