/**
  * Register the service provider.
  */
 public function register()
 {
     $this->dispatch(new CheckPhpExtensions());
     $this->dispatch(new CheckDirectoryPermissions());
     parent::register();
 }
 /**
  * Register route middleware.
  *
  * @param AddonServiceProvider $provider
  */
 protected function registerRouteMiddleware(AddonServiceProvider $provider)
 {
     foreach ($provider->getRouteMiddleware() as $name => $class) {
         $this->router->middleware($name, $class);
     }
 }