31 lines
622 B
PHP
31 lines
622 B
PHP
<?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");
|
||
}
|
||
} |