8000 deprecated lifetime profiler option · symfony/symfony@cd6ba7f · GitHub
[go: up one dir, main page]

Skip to content

Commit cd6ba7f

Browse files
committed
deprecated lifetime profiler option
1 parent bb4a511 commit cd6ba7f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,17 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode)
305305
})
306306
->end()
307307
->end()
308-
->scalarNode('lifetime')->defaultValue(86400)->end()
308+
->scalarNode('lifetime')
309+
->defaultValue(86400)
310+
->beforeNormalization()
311+
->always()
312+
->then(function ($v) {
313+
@trigger_error('The profiler.lifetime configuration key is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
314+
315+
return $v;
316+
})
317+
->end()
318+
->end()
309319
->arrayNode('matcher')
310320
->canBeUnset()
311321
->performNoDeepMerging()

0 commit comments

Comments
 (0)
0