protected function rebindProviderContainer($app, $provider)
    {
        $closure = function () use ($app) {
            $this->app = $app;
        };

        $resetProvider = $closure->bindTo($provider, $provider);
        $resetProvider();
    }
protected function rebindProviderContainer($app, $provider)
    {
        $closure = function () use ($app) {
            $this->app = $app;
        };

        $resetProvider = $closure->bindTo($provider, $provider);
        $resetProvider();
    }
protected function rebindProviderContainer ( $ app , $ provider ) { $ closure = function ( ) use ( $ app ) { $ this -> app = $ app ; } ; $ resetProvider = $ closure -> bindTo ( $ provider , $ provider ) ; $ resetProvider ( ) ; }
Rebind service provider's container.

@param $app
@param $provider
Rebind service provider s container .