menuService = new MenuService(); $this->migrationService = new MigrationService(); } /** * @throws \Exception */ public function init(): void { $this->migrationService->runAtPath("{APP}/modules/module_shop/migrations"); $this->menuService->createItem([ "label" => "Магазин модулей", "url" => "/admin/module_shop", "slug" => "module_shop", ]); } public function deactivate(): void { $this->menuService->removeItemBySlug("module_shop"); } }