MCPcopy Index your code
hub / github.com/php/frankenphp / init

Function init

embed.go:37–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35var embeddedAppChecksum []byte
36
37func init() {
38 if len(embeddedApp) == 0 {
39 // No embedded app
40 return
41 }
42
43 if EmbeddedAppPath == "" {
44 EmbeddedAppPath = filepath.Join(os.TempDir(), "frankenphp_"+string(embeddedAppChecksum))
45 }
46
47 if err := untar(EmbeddedAppPath); err != nil {
48 _ = os.RemoveAll(EmbeddedAppPath)
49 panic(err)
50 }
51}
52
53// untar reads the tar file from r and writes it into dir.
54//

Callers

nothing calls this directly

Calls 1

untarFunction · 0.85

Tested by

no test coverage detected