notification
This commit is contained in:
@ -29,11 +29,27 @@ class TgbotModule extends Module
|
||||
"url" => "/admin/tg-bot",
|
||||
"slug" => "tg-bot",
|
||||
]);
|
||||
|
||||
$this->menuService->createItem([
|
||||
"label" => "Диалоги",
|
||||
"url" => "/admin/tg-bot",
|
||||
"slug" => "tg-bot-dialogs",
|
||||
"parent_slug" => "tg-bot",
|
||||
]);
|
||||
|
||||
$this->menuService->createItem([
|
||||
"label" => "Уведомления",
|
||||
"url" => "/admin/tg-bot-notification",
|
||||
"slug" => "tg-bot-notification",
|
||||
"parent_slug" => "tg-bot",
|
||||
]);
|
||||
}
|
||||
|
||||
public function deactivate()
|
||||
{
|
||||
$this->menuService->removeItemBySlug("tg-bot");
|
||||
$this->menuService->removeItemBySlug("tg-bot-dialogs");
|
||||
$this->menuService->removeItemBySlug("tg-bot-notification");
|
||||
$this->migrationService->rollbackAtPath("{KERNEL_APP_MODULES}/tgbot/migrations");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user