Skip to content

Commit eaecccb

Browse files
minor #61181 [Messenger] Remove text format when using the messenger:stats command (nicolas-grekas)
This PR was merged into the 8.0 branch. Discussion ---------- [Messenger] Remove `text` format when using the `messenger:stats` command | Q | A | ------------- | --- | Branch? | 8.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Use `txt` instead. Commits ------- 1762e73 [Messenger] Remove `text` format when using the `messenger:stats` command
2 parents ec69e60 + 1762e73 commit eaecccb

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

UPGRADE-8.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ Mailer
250250

251251
* Remove `TransportFactoryTestCase`, extend `AbstractTransportFactoryTestCase` instead
252252

253+
Messenger
254+
---------
255+
256+
* Remove `text` format when using the `messenger:stats` command
257+
253258
Notifier
254259
--------
255260

src/Symfony/Component/Messenger/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
8.0
5+
---
6+
7+
* Remove `text` format when using the `messenger:stats` command; use `txt` instead
8+
49
7.4
510
---
611

src/Symfony/Component/Messenger/Command/StatsCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6565
$io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output);
6666

6767
$format = $input->getOption('format');
68-
if ('text' === $format) {
69-
trigger_deprecation('symfony/messenger', '7.2', 'The "text" format is deprecated, use "txt" instead.');
70-
71-
$format = 'txt';
72-
}
7368
if (!\in_array($format, $this->getAvailableFormatOptions(), true)) {
7469
throw new InvalidArgumentException('Invalid output format.');
7570
}

src/Symfony/Component/Messenger/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"require": {
1919
"php": ">=8.4",
2020
"psr/log": "^1|^2|^3",
21-
"symfony/clock": "^7.4|^8.0",
22-
"symfony/deprecation-contracts": "^2.5|^3"
21+
"symfony/clock": "^7.4|^8.0"
2322
},
2423
"require-dev": {
2524
"psr/cache": "^1.0|^2.0|^3.0",

0 commit comments

Comments
 (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