Corrected namespace for Symfony\Process
This commit is contained in:
parent
e9a36ab9a7
commit
b633f16694
23 changed files with 111 additions and 107 deletions
2
LICENSE
2
LICENSE
|
@ -1,5 +1,5 @@
|
|||
------------------------
|
||||
Symfony NccProcess
|
||||
Symfony Process
|
||||
|
||||
Copyright (c) 2004-2022 Fabien Potencier
|
||||
|
||||
|
|
BIN
cache.db
BIN
cache.db
Binary file not shown.
54
src/ncc/ThirdParty/Symfony/Process/CHANGELOG.md
vendored
54
src/ncc/ThirdParty/Symfony/Process/CHANGELOG.md
vendored
|
@ -4,42 +4,42 @@ CHANGELOG
|
|||
5.2.0
|
||||
-----
|
||||
|
||||
* added `NccProcess::setOptions()` to set `NccProcess` specific options
|
||||
* added `Process::setOptions()` to set `Process` specific options
|
||||
* added option `create_new_console` to allow a subprocess to continue
|
||||
to run after the main script exited, both on Linux and on Windows
|
||||
|
||||
5.1.0
|
||||
-----
|
||||
|
||||
* added `NccProcess::getStartTime()` to retrieve the start time of the process as float
|
||||
* added `Process::getStartTime()` to retrieve the start time of the process as float
|
||||
|
||||
5.0.0
|
||||
-----
|
||||
|
||||
* removed `NccProcess::inheritEnvironmentVariables()`
|
||||
* removed `Process::inheritEnvironmentVariables()`
|
||||
* removed `PhpProcess::setPhpBinary()`
|
||||
* `NccProcess` must be instantiated with a command array, use `NccProcess::fromShellCommandline()` when the command should be parsed by the shell
|
||||
* removed `NccProcess::setCommandLine()`
|
||||
* `Process` must be instantiated with a command array, use `Process::fromShellCommandline()` when the command should be parsed by the shell
|
||||
* removed `Process::setCommandLine()`
|
||||
|
||||
4.4.0
|
||||
-----
|
||||
|
||||
* deprecated `NccProcess::inheritEnvironmentVariables()`: env variables are always inherited.
|
||||
* added `NccProcess::getLastOutputTime()` method
|
||||
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
|
||||
* added `Process::getLastOutputTime()` method
|
||||
|
||||
4.2.0
|
||||
-----
|
||||
|
||||
* added the `NccProcess::fromShellCommandline()` to run commands in a shell wrapper
|
||||
* deprecated passing a command as string when creating a `NccProcess` instance
|
||||
* deprecated the `NccProcess::setCommandline()` and the `PhpProcess::setPhpBinary()` methods
|
||||
* added the `NccProcess::waitUntil()` method to wait for the process only for a
|
||||
* added the `Process::fromShellCommandline()` to run commands in a shell wrapper
|
||||
* deprecated passing a command as string when creating a `Process` instance
|
||||
* deprecated the `Process::setCommandline()` and the `PhpProcess::setPhpBinary()` methods
|
||||
* added the `Process::waitUntil()` method to wait for the process only for a
|
||||
specific output, then continue the normal execution of your application
|
||||
|
||||
4.1.0
|
||||
-----
|
||||
|
||||
* added the `NccProcess::isTtySupported()` method that allows to check for TTY support
|
||||
* added the `Process::isTtySupported()` method that allows to check for TTY support
|
||||
* made `PhpExecutableFinder` look for the `PHP_BINARY` env var when searching the php binary
|
||||
* added the `ProcessSignaledException` class to properly catch signaled process errors
|
||||
|
||||
|
@ -48,29 +48,29 @@ CHANGELOG
|
|||
|
||||
* environment variables will always be inherited
|
||||
* added a second `array $env = []` argument to the `start()`, `run()`,
|
||||
`mustRun()`, and `restart()` methods of the `NccProcess` class
|
||||
`mustRun()`, and `restart()` methods of the `Process` class
|
||||
* added a second `array $env = []` argument to the `start()` method of the
|
||||
`PhpProcess` class
|
||||
* the `ProcessUtils::escapeArgument()` method has been removed
|
||||
* the `areEnvironmentVariablesInherited()`, `getOptions()`, and `setOptions()`
|
||||
methods of the `NccProcess` class have been removed
|
||||
methods of the `Process` class have been removed
|
||||
* support for passing `proc_open()` options has been removed
|
||||
* removed the `ProcessBuilder` class, use the `NccProcess` class instead
|
||||
* removed the `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `NccProcess` class
|
||||
* passing a not existing working directory to the constructor of the `Symfony\Component\NccProcess\NccProcess` class is not
|
||||
* removed the `ProcessBuilder` class, use the `Process` class instead
|
||||
* removed the `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `Process` class
|
||||
* passing a not existing working directory to the constructor of the `ncc\Symfony\Component\Process\Process` class is not
|
||||
supported anymore
|
||||
|
||||
3.4.0
|
||||
-----
|
||||
|
||||
* deprecated the ProcessBuilder class
|
||||
* deprecated calling `NccProcess::start()` without setting a valid working directory beforehand (via `setWorkingDirectory()` or constructor)
|
||||
* deprecated calling `Process::start()` without setting a valid working directory beforehand (via `setWorkingDirectory()` or constructor)
|
||||
|
||||
3.3.0
|
||||
-----
|
||||
|
||||
* added command line arrays in the `NccProcess` class
|
||||
* added `$env` argument to `NccProcess::start()`, `run()`, `mustRun()` and `restart()` methods
|
||||
* added command line arrays in the `Process` class
|
||||
* added `$env` argument to `Process::start()`, `run()`, `mustRun()` and `restart()` methods
|
||||
* deprecated the `ProcessUtils::escapeArgument()` method
|
||||
* deprecated not inheriting environment variables
|
||||
* deprecated configuring `proc_open()` options
|
||||
|
@ -82,9 +82,9 @@ CHANGELOG
|
|||
|
||||
* added support for PTY mode
|
||||
* added the convenience method "mustRun"
|
||||
* deprecation: NccProcess::setStdin() is deprecated in favor of NccProcess::setInput()
|
||||
* deprecation: NccProcess::getStdin() is deprecated in favor of NccProcess::getInput()
|
||||
* deprecation: NccProcess::setInput() and ProcessBuilder::setInput() do not accept non-scalar types
|
||||
* deprecation: Process::setStdin() is deprecated in favor of Process::setInput()
|
||||
* deprecation: Process::getStdin() is deprecated in favor of Process::getInput()
|
||||
* deprecation: Process::setInput() and ProcessBuilder::setInput() do not accept non-scalar types
|
||||
|
||||
2.4.0
|
||||
-----
|
||||
|
@ -95,8 +95,8 @@ CHANGELOG
|
|||
-----
|
||||
|
||||
* added ProcessUtils::escapeArgument() to fix the bug in escapeshellarg() function on Windows
|
||||
* added NccProcess::signal()
|
||||
* added NccProcess::getPid()
|
||||
* added Process::signal()
|
||||
* added Process::getPid()
|
||||
* added support for a TTY mode
|
||||
|
||||
2.2.0
|
||||
|
@ -104,13 +104,13 @@ CHANGELOG
|
|||
|
||||
* added ProcessBuilder::setArguments() to reset the arguments on a builder
|
||||
* added a way to retrieve the standard and error output incrementally
|
||||
* added NccProcess:restart()
|
||||
* added Process:restart()
|
||||
|
||||
2.1.0
|
||||
-----
|
||||
|
||||
* added support for non-blocking processes (start(), wait(), isRunning(), stop())
|
||||
* enhanced Windows compatibility
|
||||
* added NccProcess::getExitCodeText() that returns a string representation for
|
||||
* added Process::getExitCodeText() that returns a string representation for
|
||||
the exit code returned by the process
|
||||
* added ProcessBuilder
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
/**
|
||||
* Marker Interface for the NccProcess Component.
|
||||
* Marker Interface for the Process Component.
|
||||
*
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
/**
|
||||
* InvalidArgumentException for the NccProcess Component.
|
||||
* InvalidArgumentException for the Process Component.
|
||||
*
|
||||
* @author Romain Neutron <imprec@gmail.com>
|
||||
*/
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
/**
|
||||
* LogicException for the NccProcess Component.
|
||||
* LogicException for the Process Component.
|
||||
*
|
||||
* @author Romain Neutron <imprec@gmail.com>
|
||||
*/
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
use Symfony\Component\NccProcess\Process;
|
||||
use ncc\Symfony\Component\Process\Process;
|
||||
|
||||
/**
|
||||
* Exception for failed processes.
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
use Symfony\Component\NccProcess\Process;
|
||||
use ncc\Symfony\Component\Process\Process;
|
||||
|
||||
/**
|
||||
* Exception that is thrown when a process has been signaled.
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
use Symfony\Component\NccProcess\Process;
|
||||
use ncc\Symfony\Component\Process\Process;
|
||||
|
||||
/**
|
||||
* Exception that is thrown when a process times out.
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Exception;
|
||||
namespace ncc\Symfony\Component\Process\Exception;
|
||||
|
||||
/**
|
||||
* RuntimeException for the NccProcess Component.
|
||||
* RuntimeException for the Process Component.
|
||||
*
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess;
|
||||
namespace ncc\Symfony\Component\Process;
|
||||
|
||||
/**
|
||||
* Generic executable finder.
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess;
|
||||
namespace ncc\Symfony\Component\Process;
|
||||
|
||||
use Symfony\Component\NccProcess\Exception\RuntimeException;
|
||||
use ncc\Symfony\Component\Process\Exception\RuntimeException;
|
||||
|
||||
/**
|
||||
* Provides a way to continuously write to the input of a NccProcess until the InputStream is closed.
|
||||
* Provides a way to continuously write to the input of a Process until the InputStream is closed.
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess;
|
||||
namespace ncc\Symfony\Component\Process;
|
||||
|
||||
/**
|
||||
* An executable finder specifically designed for the PHP executable.
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess;
|
||||
namespace ncc\Symfony\Component\Process;
|
||||
|
||||
use Symfony\Component\NccProcess\Exception\LogicException;
|
||||
use Symfony\Component\NccProcess\Exception\RuntimeException;
|
||||
use ncc\Symfony\Component\Process\Exception\LogicException;
|
||||
use ncc\Symfony\Component\Process\Exception\RuntimeException;
|
||||
|
||||
/**
|
||||
* PhpProcess runs a PHP script in an independent process.
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Pipes;
|
||||
namespace ncc\Symfony\Component\Process\Pipes;
|
||||
|
||||
use Symfony\Component\NccProcess\Exception\InvalidArgumentException;
|
||||
use ncc\Symfony\Component\Process\Exception\InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* @author Romain Neutron <imprec@gmail.com>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Pipes;
|
||||
namespace ncc\Symfony\Component\Process\Pipes;
|
||||
|
||||
/**
|
||||
* PipesInterface manages descriptors and pipes for the use of proc_open.
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Pipes;
|
||||
namespace ncc\Symfony\Component\Process\Pipes;
|
||||
|
||||
use Symfony\Component\NccProcess\Process;
|
||||
use ncc\Symfony\Component\Process\Process;
|
||||
|
||||
/**
|
||||
* UnixPipes implementation uses unix pipes as handles.
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess\Pipes;
|
||||
namespace ncc\Symfony\Component\Process\Pipes;
|
||||
|
||||
use Symfony\Component\NccProcess\Exception\RuntimeException;
|
||||
use Symfony\Component\NccProcess\Process;
|
||||
use ncc\Symfony\Component\Process\Exception\RuntimeException;
|
||||
use ncc\Symfony\Component\Process\Process;
|
||||
|
||||
/**
|
||||
* WindowsPipes implementation uses temporary files as handles.
|
||||
|
|
52
src/ncc/ThirdParty/Symfony/Process/Process.php
vendored
52
src/ncc/ThirdParty/Symfony/Process/Process.php
vendored
|
@ -9,20 +9,20 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess;
|
||||
namespace ncc\Symfony\Component\Process;
|
||||
|
||||
use Symfony\Component\NccProcess\Exception\InvalidArgumentException;
|
||||
use Symfony\Component\NccProcess\Exception\LogicException;
|
||||
use Symfony\Component\NccProcess\Exception\ProcessFailedException;
|
||||
use Symfony\Component\NccProcess\Exception\ProcessSignaledException;
|
||||
use Symfony\Component\NccProcess\Exception\ProcessTimedOutException;
|
||||
use Symfony\Component\NccProcess\Exception\RuntimeException;
|
||||
use Symfony\Component\NccProcess\Pipes\PipesInterface;
|
||||
use Symfony\Component\NccProcess\Pipes\UnixPipes;
|
||||
use Symfony\Component\NccProcess\Pipes\WindowsPipes;
|
||||
use ncc\Symfony\Component\Process\Exception\InvalidArgumentException;
|
||||
use ncc\Symfony\Component\Process\Exception\LogicException;
|
||||
use ncc\Symfony\Component\Process\Exception\ProcessFailedException;
|
||||
use ncc\Symfony\Component\Process\Exception\ProcessSignaledException;
|
||||
use ncc\Symfony\Component\Process\Exception\ProcessTimedOutException;
|
||||
use ncc\Symfony\Component\Process\Exception\RuntimeException;
|
||||
use ncc\Symfony\Component\Process\Pipes\PipesInterface;
|
||||
use ncc\Symfony\Component\Process\Pipes\UnixPipes;
|
||||
use ncc\Symfony\Component\Process\Pipes\WindowsPipes;
|
||||
|
||||
/**
|
||||
* NccProcess is a thin wrapper around proc_* functions to easily
|
||||
* Process is a thin wrapper around proc_* functions to easily
|
||||
* start independent PHP processes.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
|
@ -103,7 +103,7 @@ class Process implements \IteratorAggregate
|
|||
131 => 'Quit and dump core',
|
||||
132 => 'Illegal instruction',
|
||||
133 => 'Trace/breakpoint trap',
|
||||
134 => 'NccProcess aborted',
|
||||
134 => 'Process aborted',
|
||||
135 => 'Bus error: "access to undefined portion of memory object"',
|
||||
136 => 'Floating point exception: "erroneous arithmetic operation"',
|
||||
137 => 'Kill (terminate immediately)',
|
||||
|
@ -143,7 +143,7 @@ class Process implements \IteratorAggregate
|
|||
public function __construct(array $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
|
||||
{
|
||||
if (!\function_exists('proc_open')) {
|
||||
throw new LogicException('The NccProcess class relies on proc_open, which is not available on your PHP installation.');
|
||||
throw new LogicException('The Process class relies on proc_open, which is not available on your PHP installation.');
|
||||
}
|
||||
|
||||
$this->commandline = $command;
|
||||
|
@ -167,7 +167,7 @@ class Process implements \IteratorAggregate
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a NccProcess instance as a command-line to be run in a shell wrapper.
|
||||
* Creates a Process instance as a command-line to be run in a shell wrapper.
|
||||
*
|
||||
* Command-lines are parsed by the shell of your OS (/bin/sh on Unix-like, cmd.exe on Windows.)
|
||||
* This allows using e.g. pipes or conditional execution. In this mode, signals are sent to the
|
||||
|
@ -176,7 +176,7 @@ class Process implements \IteratorAggregate
|
|||
* In order to inject dynamic values into command-lines, we strongly recommend using placeholders.
|
||||
* This will save escaping values, which is not portable nor secure anyway:
|
||||
*
|
||||
* $process = NccProcess::fromShellCommandline('my_command "${:MY_VAR}"');
|
||||
* $process = Process::fromShellCommandline('my_command "${:MY_VAR}"');
|
||||
* $process->run(null, ['MY_VAR' => $theValue]);
|
||||
*
|
||||
* @param string $command The command line to pass to the shell of the OS
|
||||
|
@ -297,7 +297,7 @@ class Process implements \IteratorAggregate
|
|||
public function start(callable $callback = null, array $env = [])
|
||||
{
|
||||
if ($this->isRunning()) {
|
||||
throw new RuntimeException('NccProcess is already running.');
|
||||
throw new RuntimeException('Process is already running.');
|
||||
}
|
||||
|
||||
$this->resetProcessData();
|
||||
|
@ -388,7 +388,7 @@ class Process implements \IteratorAggregate
|
|||
public function restart(callable $callback = null, array $env = []): self
|
||||
{
|
||||
if ($this->isRunning()) {
|
||||
throw new RuntimeException('NccProcess is already running.');
|
||||
throw new RuntimeException('Process is already running.');
|
||||
}
|
||||
|
||||
$process = clone $this;
|
||||
|
@ -421,7 +421,7 @@ class Process implements \IteratorAggregate
|
|||
if (null !== $callback) {
|
||||
if (!$this->processPipes->haveReadSupport()) {
|
||||
$this->stop(0);
|
||||
throw new LogicException('Pass the callback to the "NccProcess::start" method or call enableOutput to use a callback with "NccProcess::wait".');
|
||||
throw new LogicException('Pass the callback to the "Process::start" method or call enableOutput to use a callback with "Process::wait".');
|
||||
}
|
||||
$this->callback = $this->buildCallback($callback);
|
||||
}
|
||||
|
@ -462,7 +462,7 @@ class Process implements \IteratorAggregate
|
|||
|
||||
if (!$this->processPipes->haveReadSupport()) {
|
||||
$this->stop(0);
|
||||
throw new LogicException('Pass the callback to the "NccProcess::start" method or call enableOutput to use a callback with "NccProcess::waitUntil".');
|
||||
throw new LogicException('Pass the callback to the "Process::start" method or call enableOutput to use a callback with "Process::waitUntil".');
|
||||
}
|
||||
$callback = $this->buildCallback($callback);
|
||||
|
||||
|
@ -613,9 +613,9 @@ class Process implements \IteratorAggregate
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns an iterator to the output of the process, with the output type as keys (NccProcess::OUT/ERR).
|
||||
* Returns an iterator to the output of the process, with the output type as keys (Process::OUT/ERR).
|
||||
*
|
||||
* @param int $flags A bit field of NccProcess::ITER_* flags
|
||||
* @param int $flags A bit field of Process::ITER_* flags
|
||||
*
|
||||
* @throws LogicException in case the output has been disabled
|
||||
* @throws LogicException In case the process is not started
|
||||
|
@ -746,7 +746,7 @@ class Process implements \IteratorAggregate
|
|||
/**
|
||||
* Returns the exit code returned by the process.
|
||||
*
|
||||
* @return int|null The exit status code, null if the NccProcess is not terminated
|
||||
* @return int|null The exit status code, null if the Process is not terminated
|
||||
*/
|
||||
public function getExitCode()
|
||||
{
|
||||
|
@ -761,7 +761,7 @@ class Process implements \IteratorAggregate
|
|||
* This method relies on the Unix exit code status standardization
|
||||
* and might not be relevant for other operating systems.
|
||||
*
|
||||
* @return string|null A string representation for the exit status code, null if the NccProcess is not terminated
|
||||
* @return string|null A string representation for the exit status code, null if the Process is not terminated
|
||||
*
|
||||
* @see http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
* @see http://en.wikipedia.org/wiki/Unix_signal
|
||||
|
@ -1153,7 +1153,7 @@ class Process implements \IteratorAggregate
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the NccProcess input.
|
||||
* Gets the Process input.
|
||||
*
|
||||
* @return resource|string|\Iterator|null
|
||||
*/
|
||||
|
@ -1593,7 +1593,7 @@ class Process implements \IteratorAggregate
|
|||
private function requireProcessIsStarted(string $functionName)
|
||||
{
|
||||
if (!$this->isStarted()) {
|
||||
throw new LogicException(sprintf('NccProcess must be started before calling "%s()".', $functionName));
|
||||
throw new LogicException(sprintf('Process must be started before calling "%s()".', $functionName));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1605,7 +1605,7 @@ class Process implements \IteratorAggregate
|
|||
private function requireProcessIsTerminated(string $functionName)
|
||||
{
|
||||
if (!$this->isTerminated()) {
|
||||
throw new LogicException(sprintf('NccProcess must be terminated before calling "%s()".', $functionName));
|
||||
throw new LogicException(sprintf('Process must be terminated before calling "%s()".', $functionName));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\NccProcess;
|
||||
namespace ncc\Symfony\Component\Process;
|
||||
|
||||
use Symfony\Component\NccProcess\Exception\InvalidArgumentException;
|
||||
use ncc\Symfony\Component\Process\Exception\InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* ProcessUtils is a bunch of utility methods.
|
||||
|
@ -30,7 +30,7 @@ class ProcessUtils
|
|||
}
|
||||
|
||||
/**
|
||||
* Validates and normalizes a NccProcess input.
|
||||
* 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
|
||||
|
|
6
src/ncc/ThirdParty/Symfony/Process/README.md
vendored
6
src/ncc/ThirdParty/Symfony/Process/README.md
vendored
|
@ -1,12 +1,12 @@
|
|||
NccProcess Component
|
||||
Process Component
|
||||
=================
|
||||
|
||||
The NccProcess component executes commands in sub-processes.
|
||||
The Process component executes commands in sub-processes.
|
||||
|
||||
Sponsor
|
||||
-------
|
||||
|
||||
The NccProcess component for Symfony 5.4/6.0 is [backed][1] by [SensioLabs][2].
|
||||
The Process component for Symfony 5.4/6.0 is [backed][1] by [SensioLabs][2].
|
||||
|
||||
As the creator of Symfony, SensioLabs supports companies using Symfony, with an
|
||||
offering encompassing consultancy, expertise, services, training, and technical
|
||||
|
|
|
@ -64,23 +64,23 @@ spl_autoload_register(
|
|||
'phpschool\\climenu\\util\\collection' => '/ThirdParty/php-school/cli-menu/Util/Collection.php',
|
||||
'phpschool\\climenu\\util\\colourutil' => '/ThirdParty/php-school/cli-menu/Util/ColourUtil.php',
|
||||
'phpschool\\climenu\\util\\stringutil' => '/ThirdParty/php-school/cli-menu/Util/StringUtil.php',
|
||||
'symfony\\component\\nccprocess\\exception\\exceptioninterface' => '/ThirdParty/Symfony/Process/Exception/ExceptionInterface.php',
|
||||
'symfony\\component\\nccprocess\\exception\\invalidargumentexception' => '/ThirdParty/Symfony/Process/Exception/InvalidArgumentException.php',
|
||||
'symfony\\component\\nccprocess\\exception\\logicexception' => '/ThirdParty/Symfony/Process/Exception/LogicException.php',
|
||||
'symfony\\component\\nccprocess\\exception\\processfailedexception' => '/ThirdParty/Symfony/Process/Exception/ProcessFailedException.php',
|
||||
'symfony\\component\\nccprocess\\exception\\processsignaledexception' => '/ThirdParty/Symfony/Process/Exception/ProcessSignaledException.php',
|
||||
'symfony\\component\\nccprocess\\exception\\processtimedoutexception' => '/ThirdParty/Symfony/Process/Exception/ProcessTimedOutException.php',
|
||||
'symfony\\component\\nccprocess\\exception\\runtimeexception' => '/ThirdParty/Symfony/Process/Exception/RuntimeException.php',
|
||||
'symfony\\component\\nccprocess\\executablefinder' => '/ThirdParty/Symfony/Process/ExecutableFinder.php',
|
||||
'symfony\\component\\nccprocess\\inputstream' => '/ThirdParty/Symfony/Process/InputStream.php',
|
||||
'symfony\\component\\nccprocess\\phpexecutablefinder' => '/ThirdParty/Symfony/Process/PhpExecutableFinder.php',
|
||||
'symfony\\component\\nccprocess\\phpprocess' => '/ThirdParty/Symfony/Process/PhpProcess.php',
|
||||
'symfony\\component\\nccprocess\\pipes\\abstractpipes' => '/ThirdParty/Symfony/Process/Pipes/AbstractPipes.php',
|
||||
'symfony\\component\\nccprocess\\pipes\\pipesinterface' => '/ThirdParty/Symfony/Process/Pipes/PipesInterface.php',
|
||||
'symfony\\component\\nccprocess\\pipes\\unixpipes' => '/ThirdParty/Symfony/Process/Pipes/UnixPipes.php',
|
||||
'symfony\\component\\nccprocess\\pipes\\windowspipes' => '/ThirdParty/Symfony/Process/Pipes/WindowsPipes.php',
|
||||
'symfony\\component\\nccprocess\\process' => '/ThirdParty/Symfony/Process/Process.php',
|
||||
'symfony\\component\\nccprocess\\processutils' => '/ThirdParty/Symfony/Process/ProcessUtils.php'
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\exceptioninterface' => '/ThirdParty/Symfony/Process/Exception/ExceptionInterface.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\invalidargumentexception' => '/ThirdParty/Symfony/Process/Exception/InvalidArgumentException.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\logicexception' => '/ThirdParty/Symfony/Process/Exception/LogicException.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\processfailedexception' => '/ThirdParty/Symfony/Process/Exception/ProcessFailedException.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\processsignaledexception' => '/ThirdParty/Symfony/Process/Exception/ProcessSignaledException.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\processtimedoutexception' => '/ThirdParty/Symfony/Process/Exception/ProcessTimedOutException.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\exception\\runtimeexception' => '/ThirdParty/Symfony/Process/Exception/RuntimeException.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\executablefinder' => '/ThirdParty/Symfony/Process/ExecutableFinder.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\inputstream' => '/ThirdParty/Symfony/Process/InputStream.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\phpexecutablefinder' => '/ThirdParty/Symfony/Process/PhpExecutableFinder.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\phpprocess' => '/ThirdParty/Symfony/Process/PhpProcess.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\pipes\\abstractpipes' => '/ThirdParty/Symfony/Process/Pipes/AbstractPipes.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\pipes\\pipesinterface' => '/ThirdParty/Symfony/Process/Pipes/PipesInterface.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\pipes\\unixpipes' => '/ThirdParty/Symfony/Process/Pipes/UnixPipes.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\pipes\\windowspipes' => '/ThirdParty/Symfony/Process/Pipes/WindowsPipes.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\process' => '/ThirdParty/Symfony/Process/Process.php',
|
||||
'ncc\Symfony\\component\\nccprocess\\processutils' => '/ThirdParty/Symfony/Process/ProcessUtils.php'
|
||||
);
|
||||
}
|
||||
$cn = strtolower($class);
|
||||
|
|
4
src/ncc/meta.json
Normal file
4
src/ncc/meta.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"VERSION": "1.0.0",
|
||||
"BRANCH": "master"
|
||||
}
|
Loading…
Add table
Reference in a new issue