Files
zhamao-framework/src/ZM/script_phar_stub.php
2021-09-01 14:14:00 +08:00

10 lines
320 B
PHP

<?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;
}
}
return json_decode(file_get_contents(__DIR__.'/zmplugin.json'), true) ?? ['zm_module' => false];