public function setContainer(Container $container)
    {
        $pipeline = $this->pipeline;

        $closure = function () use ($container) {
            $this->container = $container;
        };

        $resetPipeline = $closure->bindTo($pipeline, $pipeline);
        $resetPipeline();

        return $this;
    }
public function setContainer(Container $container)
    {
        $pipeline = $this->pipeline;

        $closure = function () use ($container) {
            $this->container = $container;
        };

        $resetPipeline = $closure->bindTo($pipeline, $pipeline);
        $resetPipeline();

        return $this;
    }
public function setContainer ( Container $ container ) { $ pipeline = $ this -> pipeline ; $ closure = function ( ) use ( $ container ) { $ this -> container = $ container ; } ; $ resetPipeline = $ closure -> bindTo ( $ pipeline , $ pipeline ) ; $ resetPipeline ( ) ; return $ this ; }
Set container to pipeline.

@param \Illuminate\Contracts\Container\Container $container

@return $this
Set container to pipeline .