10000 [FrameworkBundle] Deprecate setting the `collect_serializer_data` to … · symfony/symfony@f842425 · GitHub
[go: up one dir, main page]

Skip to content

Commit f842425

Browse files
committed
[FrameworkBundle] Deprecate setting the collect_serializer_data to false
1 parent f1e169e commit f842425

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

UPGRADE-7.3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ FrameworkBundle
5656
because its default value will change in version 8.0
5757
* Deprecate the `--show-arguments` option of the `container:debug` command, as arguments are now always shown
5858
* Deprecate the `framework.validation.cache` config option
59+
* Deprecate setting the `framework.profiler.collect_serializer_data` config option to `false`
5960

6061
Ldap
6162
----

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CHANGELOG
1919
* Add DI alias from `ServicesResetterInterface` to `services_resetter`
2020
* Add `methods` argument in `#[IsCsrfTokenValid]` attribute
2121
* Allow configuring the logging channel per type of exceptions
22+
* Deprecate setting the `framework.profiler.collect_serializer_data` config option to `false`
2223

2324
7.2
2425
---

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function load(array $configs, ContainerBuilder $container): void
429429
}
430430
$loggers[$exception['log_channel']] = new Reference('monolog.logger.'.$exception['log_channel'], ContainerInterface::NULL_ON_INVALID_REFERENCE);
431431
}
432-
432+
433433
$exceptionListener
434434
->replaceArgument(3, $config['exceptions'])
435435
->setArgument(4, $loggers)
@@ -984,6 +984,10 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
984984
$loader->load('notifier_debug.php');
985985
}
986986

987+
if (false === $config['collect_serializer_data']) {
988+
trigger_deprecation('symfony/framework-bundle', '7.3', 'Setting the "framework.profiler.collect_serializer_data" config option to "false" is deprecated.');
989+
}
990+
987991
if ($this->isInitializedConfigEnabled('serializer') && $config['collect_serializer_data']) {
988992
$loader->load('serializer_debug.php');
989993
}

0 commit comments

Comments
 (0)
0