recusive activate dependencies

This commit is contained in:
stasbilay02 committed 2025-01-23 16:57:03 +03:00
1 parent 11c99be0f6
commit b6ba8f8718
5 files changed
+91 -18

No files matched your search

+17
View File
@@ -88,4 +88,21 @@ class ModuleShopService
return false;
}
/**
* @param string $slug
* @return bool
* @throws GuzzleException
*/
public function existsInModuleShop(string $slug): bool
{
$modulesInfo = $this->getGroupedBySlugModules();
foreach ($modulesInfo as $module) {
if ($module['slug'] === $slug) {
return true;
}
}
return false;
}
}