use of php.runtime.loader.dump.ModuleDumper in project jphp by jphp-compiler.
the class StandaloneLoader method _fetch.
protected ModuleEntity _fetch(String name, Map<String, Module> source) {
Module module = source.get(name);
if (module == null) {
return null;
}
InputStream input = classLoader.getResourceAsStream(module.internalName + ".dump");
if (input == null) {
return null;
}
ModuleDumper moduleDumper = new ModuleDumper(new Context(new File(module.name)), env, true);
try {
return moduleDumper.load(input);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
Aggregations