Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c303de

Browse files
committed
feature #24158 deprecated profiler.matcher configuration (fabpot)
This PR was squashed before being merged into the 3.4 branch (closes #24158). Discussion ---------- deprecated profiler.matcher configuration | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | closes #24077, would also close #21944, #22484 | License | MIT | Doc PR | not yet The profiler matcher configuration was added at a time where we thought that having the profiler in production could make sense (and so being able to enable it conditionally made sense). That's not the case anymore. Nobody should ever enable it in production. With that in mind, I propose to deprecate this setting in 3.4 and remove it in 4.0. Commits ------- 6eff3e5 deprecated profiler.matcher configuration 2c62ba8 fixed CS
2 parents b1b6860 + 6eff3e5 commit 8c303de

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

UPGRADE-3.4.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ Process
210210
* The `Symfony\Component\Process\ProcessBuilder` class has been deprecated,
211211
use the `Symfony\Component\Process\Process` class directly instead.
212212

213+
Profiler
214+
--------
215+
216+
* The `profiler.matcher` option has been deprecated.
217+
213218
SecurityBundle
214219
--------------
215220

UPGRADE-4.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ Process
583583

584584
* The `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `Process` class have been removed.
585585

586+
Profiler
587+
--------
588+
589+
* The `profiler.matcher` option has been removed.
590+
586591
ProxyManager
587592
------------
588593

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
3.4.0
55
-----
66

7+
* Deprecated `profiler.matcher` option
78
* Added support for `EventSubscriberInterface` on `MicroKernelTrait`
89
* Removed `doctrine/cache` from the list of required dependencies in `composer.json`
910
* Deprecated `validator.mapping.cache.doctrine.apc` service

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode)
219219
->booleanNode('only_master_requests')->defaultFalse()->end()
220220
->scalarNode('dsn')->defaultValue('file:%kernel.cache_dir%/profiler')->end()
221221
->arrayNode('matcher')
222+
->setDeprecated('The "profiler.matcher" configuration key has been deprecated in Symfony 3.4 and it will be removed in 4.0.')
222223
->canBeEnabled()
223224
->performNoDeepMerging()
224225
->fixXmlConfig('ip')
@@ -253,7 +254,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
253254
$workflows = $v;
254255
unset($workflows['enabled']);
255256

256-
if (count($workflows) === 1 && isset($workflows[0]['enabled'])) {
257+
if (1 === count($workflows) && isset($workflows[0]['enabled'])) {
257258
$workflows = array();
258259
}
259260

0 commit comments

Comments
 (0)