protected function registerLoadEvents($provider, array $events)
    {
        if (count($events) < 1) {
            return;
        }

        $this->app->make('events')->listen($events, function () use ($provider) {
            $this->app->register($provider);
        });
    }
protected function registerLoadEvents($provider, array $events)
    {
        if (count($events) < 1) {
            return;
        }

        $this->app->make('events')->listen($events, function () use ($provider) {
            $this->app->register($provider);
        });
    }
protected function registerLoadEvents ( $ provider , array $ events ) { if ( count ( $ events ) < 1 ) { return ; } $ this -> app -> make ( 'events' ) -> listen ( $ events , function ( ) use ( $ provider ) { $ this -> app -> register ( $ provider ) ; } ) ; }
Register the load events for the given provider.

@param  string  $provider
@param  array  $events
@return void
Register the load events for the given provider .