This commit is contained in:
2025-01-19 17:15:58 +03:00
parent 40369fb515
commit b18378bcb1
41 changed files with 1257 additions and 30 deletions

View File

@ -50,6 +50,20 @@ class CardModule extends Module
"slug" => "card_template",
"parent_slug" => "card"
]);
$this->menuService->createItem([
"label" => "Программы",
"url" => "/admin/card_program",
"slug" => "card_program",
"parent_slug" => "card"
]);
$this->menuService->createItem([
"label" => "Условия",
"url" => "/admin/card_program_conditions",
"slug" => "card_program_conditions",
"parent_slug" => "card"
]);
}
/**
@ -60,6 +74,8 @@ class CardModule extends Module
$this->menuService->removeItemBySlug("card");
$this->menuService->removeItemBySlug("card_list");
$this->menuService->removeItemBySlug("card_template");
$this->menuService->removeItemBySlug("card_program");
$this->menuService->removeItemBySlug("card_program_conditions");
$this->migrationService->rollbackAtPath("{KERNEL_APP_MODULES}/card/migrations");
$this->consoleService->runComposerRemove("dragon-code/card-number");
$this->consoleService->runComposerRemove("endroid/qr-code");