*/ class GroupDeletedListener implements IEventListener { public function __construct( private DBConfigService $config, ) { } public function handle(Event $event): void { if (!$event instanceof GroupDeletedEvent) { return; } $this->config->modifyMountsOnGroupDelete($event->getGroup()->getGID()); } }