Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultComposerVersion = 2
Variables ¶
This section is empty.
Functions ¶
func GetBinaryNames ¶
func GetBinaryNames() []string
func IsBinaryName ¶
IsBinaryName returns true if the command is a PHP binary name
Types ¶
type ComposerResult ¶
type ComposerResult struct {
// contains filtered or unexported fields
}
func (ComposerResult) Error ¶
func (c ComposerResult) Error() string
func (ComposerResult) ExitCode ¶
func (c ComposerResult) ExitCode() int
type Executor ¶
type Executor struct { Dir string BinName string Args []string SkipNbArgs int Stdout io.Writer Stderr io.Writer Stdin io.Reader Paths []string ExtraEnv []string Logger zerolog.Logger // contains filtered or unexported fields }
func (*Executor) Config ¶
Config determines the right version of PHP depending on the configuration (+ its configuration)
func (*Executor) DetectScriptDir ¶
DetectScriptDir detects the script dir based on the current configuration
func (*Executor) PathsToWatch ¶
type Server ¶
Server represents a PHP server process (can be php-fpm, php-cgi, or php-cli)
func NewServer ¶
func NewServer(homeDir, projectDir, documentRoot, passthru, appVersion string, logger zerolog.Logger) (*Server, error)
NewServer creates a new PHP server backend
Click to show internal directories.
Click to hide internal directories.