From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../console/Messenger/RunCommandContext.php | 25 ----------- .../console/Messenger/RunCommandMessage.php | 36 ---------------- .../console/Messenger/RunCommandMessageHandler.php | 49 ---------------------- 3 files changed, 110 deletions(-) delete mode 100644 vendor/symfony/console/Messenger/RunCommandContext.php delete mode 100644 vendor/symfony/console/Messenger/RunCommandMessage.php delete mode 100644 vendor/symfony/console/Messenger/RunCommandMessageHandler.php (limited to 'vendor/symfony/console/Messenger') diff --git a/vendor/symfony/console/Messenger/RunCommandContext.php b/vendor/symfony/console/Messenger/RunCommandContext.php deleted file mode 100644 index 2ee5415..0000000 --- a/vendor/symfony/console/Messenger/RunCommandContext.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Console\Messenger; - -/** - * @author Kevin Bond - */ -final class RunCommandContext -{ - public function __construct( - public readonly RunCommandMessage $message, - public readonly int $exitCode, - public readonly string $output, - ) { - } -} diff --git a/vendor/symfony/console/Messenger/RunCommandMessage.php b/vendor/symfony/console/Messenger/RunCommandMessage.php deleted file mode 100644 index b530c43..0000000 --- a/vendor/symfony/console/Messenger/RunCommandMessage.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Console\Messenger; - -use Symfony\Component\Console\Exception\RunCommandFailedException; - -/** - * @author Kevin Bond - */ -class RunCommandMessage implements \Stringable -{ - /** - * @param bool $throwOnFailure If the command has a non-zero exit code, throw {@see RunCommandFailedException} - * @param bool $catchExceptions @see Application::setCatchExceptions() - */ - public function __construct( - public readonly string $input, - public readonly bool $throwOnFailure = true, - public readonly bool $catchExceptions = false, - ) { - } - - public function __toString(): string - { - return $this->input; - } -} diff --git a/vendor/symfony/console/Messenger/RunCommandMessageHandler.php b/vendor/symfony/console/Messenger/RunCommandMessageHandler.php deleted file mode 100644 index 1bc4994..0000000 --- a/vendor/symfony/console/Messenger/RunCommandMessageHandler.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Console\Messenger; - -use Symfony\Component\Console\Application; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Exception\RunCommandFailedException; -use Symfony\Component\Console\Input\StringInput; -use Symfony\Component\Console\Output\BufferedOutput; - -/** - * @author Kevin Bond - */ -final class RunCommandMessageHandler -{ - public function __construct( - private readonly Application $application, - ) { - } - - public function __invoke(RunCommandMessage $message): RunCommandContext - { - $input = new StringInput($message->input); - $output = new BufferedOutput(); - - $this->application->setCatchExceptions($message->catchExceptions); - - try { - $exitCode = $this->application->run($input, $output); - } catch (\Throwable $e) { - throw new RunCommandFailedException($e, new RunCommandContext($message, Command::FAILURE, $output->fetch())); - } - - if ($message->throwOnFailure && Command::SUCCESS !== $exitCode) { - throw new RunCommandFailedException(sprintf('Command "%s" exited with code "%s".', $message->input, $exitCode), new RunCommandContext($message, $exitCode, $output->fetch())); - } - - return new RunCommandContext($message, $exitCode, $output->fetch()); - } -} -- cgit v1.2.3