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/RunCommandMessageHandler.php | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 vendor/symfony/console/Messenger/RunCommandMessageHandler.php (limited to 'vendor/symfony/console/Messenger/RunCommandMessageHandler.php') 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