original_string: protected function registerLoadEvents($provider, array $events)
      {
          if (count($events) < 1) {
              return;
          }
  
          $this->app->make('events')->listen($events, function () use ($provider) {
              $this->app->register($provider);
          });
      }
code: protected function registerLoadEvents($provider, array $events)
      {
          if (count($events) < 1) {
              return;
          }
  
          $this->app->make('events')->listen($events, function () use ($provider) {
              $this->app->register($provider);
          });
      }
code_tokens: protected function registerLoadEvents ( $ provider , array $ events ) { if ( count ( $ events ) < 1 ) { return ; } $ this -> app -> make ( 'events' ) -> listen ( $ events , function ( ) use ( $ provider ) { $ this -> app -> register ( $ provider ) ; } ) ; }
docstring: Register the load events for the given provider.
  
  @param  string  $provider
  @param  array  $events
  @return void
docstring_tokens: Register the load events for the given provider .