Esempio n. 1
0
 /**
  * Register the load events for the given provider.
  *
  * @param  \Nova\Foundation\Application  $app
  * @param  string  $provider
  * @param  array  $events
  * @return void
  */
 protected function registerLoadEvents(Application $app, $provider, array $events)
 {
     if (count($events) < 1) {
         return;
     }
     $app->make('events')->listen($events, function () use($app, $provider) {
         $app->register($provider);
     });
 }