mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
update to 2.5.0-b1 (build 408)
This commit is contained in:
11
src/ZM/script_phar_stub.php
Normal file
11
src/ZM/script_phar_stub.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
function loader__generated_id__() {
|
||||
$obj = json_decode(file_get_contents(__DIR__.'/zmplugin.json'), true);
|
||||
foreach(($obj["autoload-psr-4"] ?? []) as $v) {
|
||||
require_once Phar::running().'/'.$v;
|
||||
}
|
||||
|
||||
}
|
||||
echo "OK!\n";
|
||||
return json_decode(file_get_contents(__DIR__.'/zmplugin.json'), true) ?? ['zm_module' => false];
|
||||
Reference in New Issue
Block a user