* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Process; use Symfony\Component\Process\Exception\InvalidArgumentException; /** * ProcessUtils is a bunch of utility methods. * * This class contains static methods only and is not meant to be instantiated. * * @author Martin HasoĊˆ */ class ProcessUtils { /** * This class should not be instantiated. */ private function __construct() { } /** * Validates and normalizes a Process input. * * @param string $caller The name of method call that validates the input * @param mixed $input The input to validate * * @return mixed * * @throws InvalidArgumentException In case the input is not valid */ public static function validateInput(string $caller, $input) { if (null !== $input) { if (\is_resource($input)) { return $input; } if (\is_string($input)) { return $input; } if (\is_scalar($input)) { return (string) $input; } if ($input instanceof Process) { return $input->getIterator($input::ITER_SKIP_ERR); } if ($input instanceof \Iterator) { return $input; } if ($input instanceof \Traversable) { return new \IteratorIterator($input); } throw new InvalidArgumentException(sprintf('"%s" only accepts strings, Traversable objects or stream resources.', $caller)); } return $input; } } __halt_compiler();----SIGNATURE:----g76clOIQLpwc/mkkmN8CCM3ESVRBaXvLyUshA4Z6D0PdzI8fXVILu9USxrFAap8EuFA3OOktQvfAuiZDR3lZSM8KCfHOYO4DXussyRnR06DfFBifc0i6BHeWaZvoGXzocchtDQESjkPj6k2Vk7M5tgFQ9SqvjMdhxxMdJyAriib3Udm9wyJWnGO1xs8Cp8q2qYi5Kestpe8h95nPVOx0e+vN1Q1b/TMxoaeGR35G6Li+OGsJ30GTb0yswh6jP0E1m16gMqItY0ODA7z1iK0et7TdeKZ1buTz1hHG27jzxDmmtl6PRok1wMii3RKbUlYRHBth8zeLzsQx1Nf44lpkLusW7jAyKM0TT7+9/eKmdKux72ugdhN+P71cgFhenL2kNLU7utLv7JhSE9ZJ5FkfYzIthkvKh6YqV6oX8OCFePcCIOXi83jSDrVKDpkHDNdOFEE6XOcCsO46KbPUiRMN9az71TK/pkzMkJ5PP+OgwOHmFLV1P51o1KVDioPi2q6/LcBXbsYqrDg2J8/7AEp/VADCcMuZ3RzVQ12XLk4vlsgxObpwvMvHyWMcPn/yAb4xFtEQfsyliy/xLG/Q8w6Mpem30DMDqMXKuxAlwPGr5g8f8RePZdihmd+Y3VT4acBgSnyAX54KXYXh+dBCdOuDtIdNSWMIbKpkW5JJZpNBQew=----ATTACHMENT:----ODczNDEyNDk5NDc5NzE3MSA5NjM5MzM1ODMzMzAzMDUyIDM2MTk5MDU0MDg3MDIzMjE=