diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
index e5b1a947e3313..c27a22fe85c19 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
@@ -468,6 +468,7 @@ protected static function getBundleDefaultConfig()
'dsn' => 'file:%kernel.cache_dir%/profiler',
'collect' => true,
'collect_parameter' => null,
+ 'collect_serializer_data' => false,
],
'translator' => [
'enabled' => !class_exists(FullStack::class),
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler.php
index 955da41fab436..6cf9ee4a671c4 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler.php
@@ -5,4 +5,7 @@
'profiler' => [
'enabled' => true,
],
+ 'serializer' => [
+ 'enabled' => true
+ ],
]);
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler_collect_serializer_data.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler_collect_serializer_data.php
new file mode 100644
index 0000000000000..e870073299c59
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler_collect_serializer_data.php
@@ -0,0 +1,12 @@
+loadFromExtension('framework', [
+ 'http_method_override' => false,
+ 'profiler' => [
+ 'enabled' => true,
+ 'collect_serializer_data' => true,
+ ],
+ 'serializer' => [
+ 'enabled' => true,
+ ]
+]);
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler.xml
index 9b157c920d11a..6a46cbc3dbda7 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler.xml
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler.xml
@@ -8,5 +8,6 @@
+
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler_collect_serializer_data.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler_collect_serializer_data.xml
new file mode 100644
index 0000000000000..e17589222d814
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/profiler_collect_serializer_data.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler.yml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler.yml
index 13279e1958fa5..190e82dae5b71 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler.yml
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler.yml
@@ -2,3 +2,5 @@ framework:
http_method_override: false
profiler:
enabled: true
+ serializer:
+ enabled: true
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler_collect_serializer_data.yml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler_collect_serializer_data.yml
new file mode 100644
index 0000000000000..ad397fb99ee0c
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/profiler_collect_serializer_data.yml
@@ -0,0 +1,7 @@
+framework:
+ http_method_override: false
+ serializer:
+ enabled: true
+ profiler:
+ enabled: true
+ collect_serializer_data: true
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
index eca45610629f2..c932298ce2cdd 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
@@ -253,6 +253,24 @@ public function testDisabledProfiler()
$this->assertFalse($container->hasDefinition('data_collector.config'), '->registerProfilerConfiguration() does not load collectors.xml');
}
+ public function testProfilerCollectSerializerDataEnabled()
+ {
+ $container = $this->createContainerFromFile('profiler_collect_serializer_data');
+
+ $this->assertTrue($container->hasDefinition('profiler'));
+ $this->assertTrue($container->hasDefinition('serializer.data_collector'));
+ $this->assertTrue($container->hasDefinition('debug.serializer'));
+ }
+
+ public function testProfilerCollectSerializerDataDefaultDisabled()
+ {
+ $container = $this->createContainerFromFile('profiler');
+
+ $this->assertTrue($container->hasDefinition('profiler'));
+ $this->assertFalse($container->hasDefinition('serializer.data_collector'));
+ $this->assertFalse($container->hasDefinition('debug.serializer'));
+ }
+
public function testWorkflows()
{
$container = $this->createContainerFromFile('workflows');
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