From 1762e73bb7f10eebc21afacdab7a17b639be42e9 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 21 Jul 2025 14:32:55 +0200 Subject: [PATCH] [Messenger] Remove `text` format when using the `messenger:stats` command --- UPGRADE-8.0.md | 5 +++++ src/Symfony/Component/Messenger/CHANGELOG.md | 5 +++++ src/Symfony/Component/Messenger/Command/StatsCommand.php | 5 ----- src/Symfony/Component/Messenger/composer.json | 3 +-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/UPGRADE-8.0.md b/UPGRADE-8.0.md index b2a23ec3c3678..42abff01c14a3 100644 --- a/UPGRADE-8.0.md +++ b/UPGRADE-8.0.md @@ -249,6 +249,11 @@ Mailer * Remove `TransportFactoryTestCase`, extend `AbstractTransportFactoryTestCase` instead +Messenger +--------- + + * Remove `text` format when using the `messenger:stats` command + Notifier -------- diff --git a/src/Symfony/Component/Messenger/CHANGELOG.md b/src/Symfony/Component/Messenger/CHANGELOG.md index 35aa38b9315f2..3fb88b7305b28 100644 --- a/src/Symfony/Component/Messenger/CHANGELOG.md +++ b/src/Symfony/Component/Messenger/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +8.0 +--- + + * Remove `text` format when using the `messenger:stats` command; use `txt` instead + 7.4 --- diff --git a/src/Symfony/Component/Messenger/Command/StatsCommand.php b/src/Symfony/Component/Messenger/Command/StatsCommand.php index 633a9381e38ae..2a5e4aeac8497 100644 --- a/src/Symfony/Component/Messenger/Command/StatsCommand.php +++ b/src/Symfony/Component/Messenger/Command/StatsCommand.php @@ -65,11 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output); $format = $input->getOption('format'); - if ('text' === $format) { - trigger_deprecation('symfony/messenger', '7.2', 'The "text" format is deprecated, use "txt" instead.'); - - $format = 'txt'; - } if (!\in_array($format, $this->getAvailableFormatOptions(), true)) { throw new InvalidArgumentException('Invalid output format.'); } diff --git a/src/Symfony/Component/Messenger/composer.json b/src/Symfony/Component/Messenger/composer.json index 625b7e3fd1b1b..4a97b2de644e2 100644 --- a/src/Symfony/Component/Messenger/composer.json +++ b/src/Symfony/Component/Messenger/composer.json @@ -18,8 +18,7 @@ "require": { "php": ">=8.4", "psr/log": "^1|^2|^3", - "symfony/clock": "^7.4|^8.0", - "symfony/deprecation-contracts": "^2.5|^3" + "symfony/clock": "^7.4|^8.0" }, "require-dev": { "psr/cache": "^1.0|^2.0|^3.0", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy