igmf/kernel/app_modules/Еtest/ЕtestModule.php

31 lines
622 B
PHP
Raw Normal View History

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