igmf/kernel/app_modules/Еtest/ЕtestModule.php
2024-12-10 17:01:25 +03:00

31 lines
622 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace kernel\app_modules\ЕÑtest;
use kernel\helpers\Debug;
use kernel\Module;
use kernel\modules\menu\service\MenuService;
class ЕÑtestModule extends Module
{
public MenuService $menuService;
public function __construct()
{
$this->menuService = new MenuService();
}
public function init(): void
{
$this->menuService->createItem([
"label" => "ТеÑ<EFBFBD>Ñ",
"url" => "/admin/ЕÑtest",
"slug" => "ЕÑtest",
]);
}
public function deactivate(): void
{
$this->menuService->removeItemBySlug("ЕÑtest");
}
}