/**
  * Handle the event.
  *
  * @param ExtensionWasUninstalled $event
  */
 public function handle(ExtensionWasUninstalled $event)
 {
     $extension = $event->getExtension();
     foreach ($this->settings->findAllByNamespace($extension->getNamespace()) as $setting) {
         $this->settings->delete($setting);
     }
 }
 /**
  * Handle the event.
  *
  * @param ModuleWasUninstalled $event
  */
 public function handle(ModuleWasUninstalled $event)
 {
     $module = $event->getModule();
     foreach ($this->settings->findAllByNamespace($module->getNamespace()) as $setting) {
         $this->settings->delete($setting);
     }
 }