some fix
This commit is contained in:
31
kernel/app_themes/custom/CustomTheme.php
Normal file
31
kernel/app_themes/custom/CustomTheme.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\app_themes\custom;
|
||||
|
||||
use kernel\modules\menu\service\MenuService;
|
||||
use kernel\services\MigrationService;
|
||||
|
||||
class CustomTheme
|
||||
{
|
||||
public MenuService $menuService;
|
||||
public MigrationService $migrationService;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->menuService = new MenuService();
|
||||
$this->migrationService = new MigrationService();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function init(): void
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
|
||||
public function deactivate(): void
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
}
|
8
kernel/app_themes/custom/services/CustomThemeService.php
Normal file
8
kernel/app_themes/custom/services/CustomThemeService.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\app_themes\custom\services;
|
||||
|
||||
class CustomThemeService
|
||||
{
|
||||
|
||||
}
|
@ -250,9 +250,9 @@ class ThemeService
|
||||
}
|
||||
|
||||
if (isset($manifest['theme_kernel_path'])) {
|
||||
$fileHelper->copy_folder($tmpThemeDirFull . "meta/kernel", $manifest['theme_app_path']);
|
||||
$fileHelper->copy_folder($tmpThemeDirFull . "meta/kernel", $manifest['theme_kernel_path']);
|
||||
} else {
|
||||
$fileHelper->copy_folder($tmpThemeDirFull . "meta/kernel", APP_DIR . '/themes/' . $manifest['slug']);
|
||||
$fileHelper->copy_folder($tmpThemeDirFull . "meta/kernel", KERNEL_DIR . '/app_themes/' . $manifest['slug']);
|
||||
}
|
||||
|
||||
if (isset($manifest['resource_path'])) {
|
||||
|
Reference in New Issue
Block a user