Documentation
¶
Index ¶
Constants ¶
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 SymfonyConsoleExecutor ¶
SymfonyConsoleExecutor returns an Executor prepared to run Symfony Console. It returns an error if no console binary is found.
func (*Executor) CleanupTemporaryDirectories ¶
func (e *Executor) CleanupTemporaryDirectories()
func (Executor) CommandLine ¶
func (*Executor) Config ¶
Config determines the right version of PHP depending on the configuration (+ its configuration). It also creates some symlinks to ease the integration with underlying tools that could try to run PHP. This is the responsibility of the caller to clean those temporary files. One can call CleanupTemporaryDirectories to do so.
func (*Executor) DetectScriptDir ¶
DetectScriptDir detects the script dir based on the current configuration
func (*Executor) PathsToWatch ¶
type Server ¶
type Server struct { Version *phpstore.Version StoppedChan chan bool // contains filtered or unexported fields }
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