OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
16
app/Core/Plugins/PluginManager.php
Normal file
16
app/Core/Plugins/PluginManager.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\Plugins;
|
||||
|
||||
class PluginManager
|
||||
{
|
||||
public function __construct() {}
|
||||
|
||||
public function loadPlugin(string $pluginPath): void
|
||||
{
|
||||
$registerFile = $pluginPath.'/register.php';
|
||||
if (file_exists($registerFile)) {
|
||||
require_once $registerFile;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user