mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
change autoload to hotload for phar hotload mode (build 442)
This commit is contained in:
@@ -5,7 +5,10 @@ declare(strict_types=1);
|
||||
function loader__generated_id__()
|
||||
{
|
||||
$obj = json_decode(file_get_contents(__DIR__ . '/zmplugin.json'), true);
|
||||
foreach (($obj['autoload-psr-4'] ?? []) as $v) {
|
||||
foreach (($obj['hotload-psr-4'] ?? []) as $v) {
|
||||
require_once Phar::running() . '/' . $v;
|
||||
}
|
||||
foreach (($obj['hotload-files'] ?? []) as $v) {
|
||||
require_once Phar::running() . '/' . $v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user