Skip to content

Commit 62a0ecd

Browse files
committed
bug #16027 deprecated lifetime profiler option (fabpot)
This PR was merged into the 2.8 branch. Discussion ---------- deprecated lifetime profiler option | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- cd6ba7f deprecated lifetime profiler option
2 parents a291402 + cd6ba7f commit 62a0ecd

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)
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