original_string: 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);
              }
          });
      }
code: 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);
              }
          });
      }
code_tokens: 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 ) ; } } ) ; }
docstring: Handle the re-binding of the event dispatcher binding.
  
  @return void
docstring_tokens: Handle the re - binding of the event dispatcher binding .