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

Method generate

internal/extgen/stub.go:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func (sg *StubGenerator) generate() error {
18 filename := filepath.Join(sg.Generator.BuildDir, sg.Generator.BaseName+".stub.php")
19 content, err := sg.buildContent()
20 if err != nil {
21 return err
22 }
23
24 return writeFile(filename, content)
25}
26
27func (sg *StubGenerator) buildContent() (string, error) {
28 tmpl, err := template.New("stub.php.tpl").Funcs(template.FuncMap{

Callers 3

generateStubFileMethod · 0.95

Calls 2

buildContentMethod · 0.95
writeFileFunction · 0.85

Tested by 2