$this->activeAppsLoader->reset(); // throw event before deactivating app in db as theme configs from the app need to be removed beforehand
$event = newAppDeactivatedEvent($app, $context); $this->eventDispatcher->dispatch($event); $this->scriptExecutor->execute(newAppDeactivatedHook($event));