thrownew \RuntimeException(\sprintf('App %s can not be deactivated. You have to uninstall the app.', $app->getName())); }
$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));