Class Symfony\Component\Process\ProcessUtils

InheritanceSymfony\Component\Process\ProcessUtils

ProcessUtils is a bunch of utility methods.

This class contains static methods only and is not meant to be instantiated.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
escapeArgument() Escapes a string to be used as a shell argument. Symfony\Component\Process\ProcessUtils
validateInput() Validates and normalizes a Process input. Symfony\Component\Process\ProcessUtils

Method Details

escapeArgument() public static method

Escapes a string to be used as a shell argument.

public static string escapeArgument ( $argument )
$argument string

The argument that will be escaped

return string

The escaped argument

validateInput() public static method

Validates and normalizes a Process input.

public static mixed validateInput ( $caller, $input )
$caller string

The name of method call that validates the input

$input mixed

The input to validate

return mixed

The validated input

throws Symfony\Component\Process\Exception\InvalidArgumentException

In case the input is not valid