protected function registerEventRebindHandler()
    {
        $this->app->rebinding('events', function ($app, $dispatcher) {
            if (! $app->resolved('auth')) {
                return;
            }

            if (method_exists($guard = $app['auth']->guard(), 'setDispatcher')) {
                $guard->setDispatcher($dispatcher);
            }
        });
    }
protected function registerEventRebindHandler()
    {
        $this->app->rebinding('events', function ($app, $dispatcher) {
            if (! $app->resolved('auth')) {
                return;
            }

            if (method_exists($guard = $app['auth']->guard(), 'setDispatcher')) {
                $guard->setDispatcher($dispatcher);
            }
        });
    }
protected function registerEventRebindHandler ( ) { $ this -> app -> rebinding ( 'events' , function ( $ app , $ dispatcher ) { if ( ! $ app -> resolved ( 'auth' ) ) { return ; } if ( method_exists ( $ guard = $ app [ 'auth' ] -> guard ( ) , 'setDispatcher' ) ) { $ guard -> setDispatcher ( $ dispatcher ) ; } } ) ; }
Handle the re-binding of the event dispatcher binding.

@return void
Handle the re - binding of the event dispatcher binding .