From b633f16694b6cb79012aec0b6fdc6a2bcb55f0c2 Mon Sep 17 00:00:00 2001 From: Zi Xing Date: Sat, 16 Apr 2022 19:01:04 -0400 Subject: [PATCH] Corrected namespace for Symfony\Process --- LICENSE | 2 +- cache.db | Bin 251191 -> 0 bytes .../ThirdParty/Symfony/Process/CHANGELOG.md | 54 +++++++++--------- .../Process/Exception/ExceptionInterface.php | 4 +- .../Exception/InvalidArgumentException.php | 4 +- .../Process/Exception/LogicException.php | 4 +- .../Exception/ProcessFailedException.php | 4 +- .../Exception/ProcessSignaledException.php | 4 +- .../Exception/ProcessTimedOutException.php | 4 +- .../Process/Exception/RuntimeException.php | 4 +- .../Symfony/Process/ExecutableFinder.php | 2 +- .../Symfony/Process/InputStream.php | 6 +- .../Symfony/Process/PhpExecutableFinder.php | 2 +- .../ThirdParty/Symfony/Process/PhpProcess.php | 6 +- .../Symfony/Process/Pipes/AbstractPipes.php | 4 +- .../Symfony/Process/Pipes/PipesInterface.php | 2 +- .../Symfony/Process/Pipes/UnixPipes.php | 4 +- .../Symfony/Process/Pipes/WindowsPipes.php | 6 +- .../ThirdParty/Symfony/Process/Process.php | 52 ++++++++--------- .../Symfony/Process/ProcessUtils.php | 6 +- src/ncc/ThirdParty/Symfony/Process/README.md | 6 +- src/ncc/autoload.php | 34 +++++------ src/ncc/meta.json | 4 ++ 23 files changed, 111 insertions(+), 107 deletions(-) delete mode 100644 cache.db create mode 100644 src/ncc/meta.json diff --git a/LICENSE b/LICENSE index 7eee517..e77f99f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ ------------------------ -Symfony NccProcess +Symfony Process Copyright (c) 2004-2022 Fabien Potencier diff --git a/cache.db b/cache.db deleted file mode 100644 index 638b39929bea4c1fb100bc93c04f7894d409ab14..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 251191 zcmeHQU31&UlJ#%#`&~*RDN6K{qd2>+y18-L&h86dAP}SwLjVf^W2s#E@7q0t84QRa zJ}F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TM*_%Wwdq z3_4>Vhz%=;sKr%uTy_~*EVr^;iB1+A5|$wb3fW`CX$dlUXgq~=4(Ata;#=4Iwtoo| zc&ZP+PTYH;)S;i4%rcKSGlEww;{inKsa~i}QN`XNiVRiup{j)KxHgC~Fz9u-Shv-p zN0b5C2-3esHbRxSEh8)9|AtSXyjh44*)nC2jj&g-S#Mv?Q1(Bf42Uue3~L$W+Miv7 zsAo0;fu0@s@p`Z53VF*5pEo=)yS_ZTo-gJcp17n&_6|>clDzvdCO>eZCo}eIV-tB^ zLEpdx@!JuYKw!cISrx*_4mr{vkp95qp`0L76)!^i1F9paH3WePDcHlaB!}NQJZ%Lv z<(W#2Z3tLDwW@&0`-idTW^rO5tk&?fJh^y%gC57q3zoltz=RERMqq;X86#T*fe8dA ztT5G#{K2}eVS|N|qhsQwX~2uuJ{<)@V1nK1S$!0S6tg@(3>jAyb@(8Y1ev7Rq9}vF zMD$1uLrc#f{Q>C@ia=mVNHEZqqu}2cWO5%CWugUt;I9}PD7g>WT@rui%|RfK-Sbl* zlSDotRe7sbOUt8dW#fe$NpdZzBygO#n+=J$2n8B?zw`ye#q?j{=_x^)S`7I`q(6{B z(l0PU7j^>5PZZ8LpH1gyBAh|9r*}BxhBg|~{z*m|&uEj1!#gQAux~(Pihu_6oXT)D z0vf6ZkZFNT3nFHAFX6y&ffdo!BTF4v$Y~A1A=G_9-3QctuppW;TB0FL_J?Iu}NdOv|7S$XS1T+xPP*x}c8lEp?C7m3k zM?eDsjl2?p_NSgRpg}uZH+=mRagh1h+4OwA5UNv`6t(Fa2N`4dgT3UYbdJ7Jj~SvK zhakquOlqGb9G>)7YIk$$!Dlt73 zTGL;YKyX4VjW1}QhQ1W^r6^t^y+uSl5cSA0NEx-L#4Zr^*waDMylU */ diff --git a/src/ncc/ThirdParty/Symfony/Process/Exception/InvalidArgumentException.php b/src/ncc/ThirdParty/Symfony/Process/Exception/InvalidArgumentException.php index 6018dc0..bbe8c4e 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Exception/InvalidArgumentException.php +++ b/src/ncc/ThirdParty/Symfony/Process/Exception/InvalidArgumentException.php @@ -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 */ diff --git a/src/ncc/ThirdParty/Symfony/Process/Exception/LogicException.php b/src/ncc/ThirdParty/Symfony/Process/Exception/LogicException.php index c06fea1..8110704 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Exception/LogicException.php +++ b/src/ncc/ThirdParty/Symfony/Process/Exception/LogicException.php @@ -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 */ diff --git a/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessFailedException.php b/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessFailedException.php index 05496b3..cdabd76 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessFailedException.php +++ b/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessFailedException.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessSignaledException.php b/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessSignaledException.php index bc82122..cd41f66 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessSignaledException.php +++ b/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessSignaledException.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessTimedOutException.php b/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessTimedOutException.php index ba0eea6..195785b 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessTimedOutException.php +++ b/src/ncc/ThirdParty/Symfony/Process/Exception/ProcessTimedOutException.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Exception/RuntimeException.php b/src/ncc/ThirdParty/Symfony/Process/Exception/RuntimeException.php index 2736112..5c1fb99 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Exception/RuntimeException.php +++ b/src/ncc/ThirdParty/Symfony/Process/Exception/RuntimeException.php @@ -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 */ diff --git a/src/ncc/ThirdParty/Symfony/Process/ExecutableFinder.php b/src/ncc/ThirdParty/Symfony/Process/ExecutableFinder.php index 7ce97d1..7760206 100644 --- a/src/ncc/ThirdParty/Symfony/Process/ExecutableFinder.php +++ b/src/ncc/ThirdParty/Symfony/Process/ExecutableFinder.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\NccProcess; +namespace ncc\Symfony\Component\Process; /** * Generic executable finder. diff --git a/src/ncc/ThirdParty/Symfony/Process/InputStream.php b/src/ncc/ThirdParty/Symfony/Process/InputStream.php index cd231d5..5114866 100644 --- a/src/ncc/ThirdParty/Symfony/Process/InputStream.php +++ b/src/ncc/ThirdParty/Symfony/Process/InputStream.php @@ -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 * diff --git a/src/ncc/ThirdParty/Symfony/Process/PhpExecutableFinder.php b/src/ncc/ThirdParty/Symfony/Process/PhpExecutableFinder.php index 9e96d73..e1dc6e2 100644 --- a/src/ncc/ThirdParty/Symfony/Process/PhpExecutableFinder.php +++ b/src/ncc/ThirdParty/Symfony/Process/PhpExecutableFinder.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/PhpProcess.php b/src/ncc/ThirdParty/Symfony/Process/PhpProcess.php index 69eafd3..579ff58 100644 --- a/src/ncc/ThirdParty/Symfony/Process/PhpProcess.php +++ b/src/ncc/ThirdParty/Symfony/Process/PhpProcess.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Pipes/AbstractPipes.php b/src/ncc/ThirdParty/Symfony/Process/Pipes/AbstractPipes.php index ccbd7f7..ed238f7 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Pipes/AbstractPipes.php +++ b/src/ncc/ThirdParty/Symfony/Process/Pipes/AbstractPipes.php @@ -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 diff --git a/src/ncc/ThirdParty/Symfony/Process/Pipes/PipesInterface.php b/src/ncc/ThirdParty/Symfony/Process/Pipes/PipesInterface.php index da3faf7..fd2b52f 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Pipes/PipesInterface.php +++ b/src/ncc/ThirdParty/Symfony/Process/Pipes/PipesInterface.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Pipes/UnixPipes.php b/src/ncc/ThirdParty/Symfony/Process/Pipes/UnixPipes.php index 3928387..772d3ed 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Pipes/UnixPipes.php +++ b/src/ncc/ThirdParty/Symfony/Process/Pipes/UnixPipes.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Pipes/WindowsPipes.php b/src/ncc/ThirdParty/Symfony/Process/Pipes/WindowsPipes.php index 8dacfc0..c6acd97 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Pipes/WindowsPipes.php +++ b/src/ncc/ThirdParty/Symfony/Process/Pipes/WindowsPipes.php @@ -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. diff --git a/src/ncc/ThirdParty/Symfony/Process/Process.php b/src/ncc/ThirdParty/Symfony/Process/Process.php index 0bb22d1..17457d9 100644 --- a/src/ncc/ThirdParty/Symfony/Process/Process.php +++ b/src/ncc/ThirdParty/Symfony/Process/Process.php @@ -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 @@ -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)); } } diff --git a/src/ncc/ThirdParty/Symfony/Process/ProcessUtils.php b/src/ncc/ThirdParty/Symfony/Process/ProcessUtils.php index e4f03e6..b394f6a 100644 --- a/src/ncc/ThirdParty/Symfony/Process/ProcessUtils.php +++ b/src/ncc/ThirdParty/Symfony/Process/ProcessUtils.php @@ -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 diff --git a/src/ncc/ThirdParty/Symfony/Process/README.md b/src/ncc/ThirdParty/Symfony/Process/README.md index 0bb621c..8777de4 100644 --- a/src/ncc/ThirdParty/Symfony/Process/README.md +++ b/src/ncc/ThirdParty/Symfony/Process/README.md @@ -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 diff --git a/src/ncc/autoload.php b/src/ncc/autoload.php index 95641bd..142432d 100644 --- a/src/ncc/autoload.php +++ b/src/ncc/autoload.php @@ -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); diff --git a/src/ncc/meta.json b/src/ncc/meta.json new file mode 100644 index 0000000..427adc9 --- /dev/null +++ b/src/ncc/meta.json @@ -0,0 +1,4 @@ +{ + "VERSION": "1.0.0", + "BRANCH": "master" +} \ No newline at end of file