package php import ( "context" "strings" "github.com/FAU-CDI/wisski-distillery/internal/phpx" "github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient" "github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/barrel" ) type PHP struct { ingredient.Base Dependencies struct { Barrel *barrel.Barrel } } // ExecScript executes the PHP code as a script on the given server. // When server is nil, creates a new server and automatically closes it after execution. // Calling this function repeatedly with server = nil is inefficient. // // The script should define a function called entrypoint, and may define additional functions. // // Code must start with "