Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions UPGRADE-8.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
UPGRADE FROM 8.0 to 8.1
=======================

Symfony 8.1 is a minor release. According to the Symfony release process, there should be no significant
backward compatibility breaks. Minor backward compatibility breaks are prefixed in this document with
`[BC BREAK]`, make sure your code is compatible with these entries before upgrading.
Read more about this in the [Symfony documentation](https://symfony.com/doc/8.1/setup/upgrade_minor.html).

If you're upgrading from a version below 8.0, follow the [8.0 upgrade guide](UPGRADE-8.0.md) first.

Table of Contents
-----------------

Bundles

* [FrameworkBundle](#FrameworkBundle)

FrameworkBundle
---------------

* Deprecate setting the `framework.profiler.collect_serializer_data` config option
1 change: 1 addition & 0 deletions src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG
---

* Enable the property info constructor extractor by default
* Deprecate setting the `framework.profiler.collect_serializer_data` config option

7.3
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,11 @@ 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()
->booleanNode('collect_serializer_data')
->info('Enables the serializer data collector and profiler panel.')
->defaultTrue()
->setDeprecated('symfony/framework-bundle', '8.0', 'Setting the "%path%.%node%" configuration option is deprecated. It will be removed in version 9.0.')
->end()
->end()
->end()
->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1013,10 +1013,6 @@ 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']) {
$loader->load('serializer_debug.php');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'php_errors' => ['log' => true],
'profiler' => [
'enabled' => true,
'collect_serializer_data' => true,
],
'serializer' => [
'enabled' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<framework:config http-method-override="false" handle-all-throwables="true">
<framework:annotations enabled="false" />
<framework:php-errors log="true" />
<framework:profiler enabled="true" collect-serializer-data="true" />
<framework:profiler enabled="true" />
<framework:serializer enabled="true" />
</framework:config>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ framework:
log: true
profiler:
enabled: true
collect_serializer_data: true
serializer:
enabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ framework:
cookie_samesite: lax
php_errors:
log: true
profiler:
collect_serializer_data: true

services:
logger: { class: Psr\Log\NullLogger }
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ framework:
log: true
profiler:
only_exceptions: false
collect_serializer_data: true

services:
logger: { class: Psr\Log\NullLogger }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ framework:
log: true
profiler:
only_exceptions: false
collect_serializer_data: true

services:
logger: { class: Psr\Log\NullLogger }
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
'http_method_override' => false,
'php_errors' => ['log' => true],
'secret' => 'foo-secret',
'profiler' => ['only_exceptions' => false, 'collect_serializer_data' => true],
'profiler' => ['only_exceptions' => false],
'session' => ['handler_id' => null, 'storage_factory_id' => 'session.storage.factory.mock_file', 'cookie-secure' => 'auto', 'cookie-samesite' => 'lax'],
'router' => ['utf8' => true],
];
Expand Down
Loading