protected function bindClosureToInstance($closure, $instance)
    {
        if ($closure instanceof \Closure) {
            $closure = $closure->bind($closure, $instance, get_class($instance));
        }

        return $closure;
    }
protected function bindClosureToInstance($closure, $instance)
    {
        if ($closure instanceof \Closure) {
            $closure = $closure->bind($closure, $instance, get_class($instance));
        }

        return $closure;
    }
protected function bindClosureToInstance ( $ closure , $ instance ) { if ( $ closure instanceof \ Closure ) { $ closure = $ closure -> bind ( $ closure , $ instance , get_class ( $ instance ) ) ; } return $ closure ; }
Bind any closure to application instance

@param $closure
@param $instance

@return mixed
Bind any closure to application instance