[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/process/ -> ProcessBuilder.php (summary)

(no description)

File Size: 280 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ProcessBuilder:: (15 methods):
  __construct()
  create()
  add()
  setPrefix()
  setArguments()
  setWorkingDirectory()
  inheritEnvironmentVariables()
  setEnv()
  addEnvironmentVariables()
  setInput()
  setTimeout()
  setOption()
  disableOutput()
  enableOutput()
  getProcess()


Class: ProcessBuilder  - X-Ref


__construct(array $arguments = [])   X-Ref

param: string[] $arguments An array of arguments

create(array $arguments = [])   X-Ref
Creates a process builder instance.

param: string[] $arguments An array of arguments
return: static

add($argument)   X-Ref
Adds an unescaped argument to the command string.

param: string $argument A command argument
return: $this

setPrefix($prefix)   X-Ref
Adds a prefix to the command string.

The prefix is preserved when resetting arguments.

param: string|array $prefix A command prefix or an array of command prefixes
return: $this

setArguments(array $arguments)   X-Ref
Sets the arguments of the process.

Arguments must not be escaped.
Previous arguments are removed.

param: string[] $arguments
return: $this

setWorkingDirectory($cwd)   X-Ref
Sets the working directory.

param: string|null $cwd The working directory
return: $this

inheritEnvironmentVariables($inheritEnv = true)   X-Ref
Sets whether environment variables will be inherited or not.

param: bool $inheritEnv
return: $this

setEnv($name, $value)   X-Ref
Sets an environment variable.

Setting a variable overrides its previous value. Use `null` to unset a
defined environment variable.

param: string      $name  The variable name
param: string|null $value The variable value
return: $this

addEnvironmentVariables(array $variables)   X-Ref
Adds a set of environment variables.

Already existing environment variables with the same name will be
overridden by the new values passed to this method. Pass `null` to unset
a variable.

param: array $variables The variables
return: $this

setInput($input)   X-Ref
Sets the input of the process.

param: resource|string|int|float|bool|\Traversable|null $input The input content
return: $this

setTimeout($timeout)   X-Ref
Sets the process timeout.

To disable the timeout, set this value to null.

param: float|null $timeout
return: $this

setOption($name, $value)   X-Ref
Adds a proc_open option.

param: string $name  The option name
param: string $value The option value
return: $this

disableOutput()   X-Ref
Disables fetching output and error output from the underlying process.

return: $this

enableOutput()   X-Ref
Enables fetching output and error output from the underlying process.

return: $this

getProcess()   X-Ref
Creates a Process instance and returns it.

return: Process



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1