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 Е<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");
|
|||
|
}
|
|||
|
}
|