From bd2c3e4b2f118a11686ccbf27626b62f77a7a595 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 21 Jul 2025 14:12:39 +0200 Subject: [PATCH] [FrameworkBundle] Remove TranslationUpdateCommand --- UPGRADE-8.0.md | 1 + .../Bundle/FrameworkBundle/CHANGELOG.md | 1 + .../Command/TranslationUpdateCommand.php | 34 ------------------- .../DependencyInjection/Configuration.php | 2 +- .../FrameworkExtension.php | 6 +--- .../DependencyInjection/ConfigurationTest.php | 3 +- 6 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php diff --git a/UPGRADE-8.0.md b/UPGRADE-8.0.md index b2a23ec3c3678..27ffa409d2764 100644 --- a/UPGRADE-8.0.md +++ b/UPGRADE-8.0.md @@ -213,6 +213,7 @@ FrameworkBundle * Remove `session.sid_length` and `session.sid_bits_per_character` config options * Remove the `router.cache_dir` config option * Remove the `validation.cache` option + * Remove `TranslationUpdateCommand` in favor of `TranslationExtractCommand` HttpFoundation -------------- diff --git a/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md b/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md index 4f392e35b5892..6fd0f1b1c652a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md +++ b/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md @@ -17,6 +17,7 @@ CHANGELOG * Remove `session.sid_length` and `session.sid_bits_per_character` config options * Remove the `router.cache_dir` config option * Remove the `validation.cache` option + * Remove `TranslationUpdateCommand` in favor of `TranslationExtractCommand` 7.4 --- diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php deleted file mode 100644 index de5aa93896057..0000000000000 --- a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Bundle\FrameworkBundle\Command; - -use Symfony\Component\Translation\Extractor\ExtractorInterface; -use Symfony\Component\Translation\Reader\TranslationReaderInterface; -use Symfony\Component\Translation\Writer\TranslationWriterInterface; - -class TranslationUpdateCommand extends TranslationExtractCommand -{ - public function __construct( - private TranslationWriterInterface $writer, - private TranslationReaderInterface $reader, - private ExtractorInterface $extractor, - private string $defaultLocale, - private ?string $defaultTransPath = null, - private ?string $defaultViewsPath = null, - private array $transPaths = [], - private array $codePaths = [], - private array $enabledLocales = [], - ) { - trigger_deprecation('symfony/framework-bundle', '7.3', 'The "%s" class is deprecated, use "%s" instead.', __CLASS__, TranslationExtractCommand::class); - parent::__construct($writer, $reader, $extractor, $defaultLocale, $defaultTransPath, $defaultViewsPath, $transPaths, $codePaths, $enabledLocales); - } -} diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php index d405004f9ef0b..419d9b2061eaf 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php @@ -354,7 +354,7 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode): void ->booleanNode('only_exceptions')->defaultFalse()->end() ->booleanNode('only_main_requests')->defaultFalse()->end() ->scalarNode('dsn')->defaultValue('file:%kernel.cache_dir%/profiler')->end() - ->booleanNode('collect_serializer_data')->info('Enables the serializer data collector and profiler panel.')->defaultFalse()->end() + ->enumNode('collect_serializer_data')->values([true])->defaultTrue()->end() // to be @deprecated in Symfony 8.1 ->end() ->end() ->end() diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index 9a3798cca385f..0f47b4fe4ac61 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -972,11 +972,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $ $loader->load('notifier_debug.php'); } - if (false === $config['collect_serializer_data']) { - trigger_deprecation('symfony/framework-bundle', '7.3', 'Setting the "framework.profiler.collect_serializer_data" config option to "false" is deprecated.'); - } - - if ($this->isInitializedConfigEnabled('serializer') && $config['collect_serializer_data']) { + if ($this->isInitializedConfigEnabled('serializer')) { $loader->load('serializer_debug.php'); } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php index 3d69cee7574e7..91e849f26f3ef 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php @@ -25,7 +25,6 @@ use Symfony\Component\JsonStreamer\JsonStreamWriter; use Symfony\Component\Lock\Store\SemaphoreStore; use Symfony\Component\Mailer\Mailer; -use Symfony\Component\Messenger\MessageBusInterface; use Symfony\Component\Notifier\Notifier; use Symfony\Component\RateLimiter\Policy\TokenBucketLimiter; use Symfony\Component\RemoteEvent\RemoteEvent; @@ -688,7 +687,7 @@ protected static function getBundleDefaultConfig() 'dsn' => 'file:%kernel.cache_dir%/profiler', 'collect' => true, 'collect_parameter' => null, - 'collect_serializer_data' => false, + 'collect_serializer_data' => true, ], 'translator' => [ 'enabled' => !class_exists(FullStack::class), 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