Skip to content

Commit 7538371

Browse files
committed
#33467 - Deprecated intercept_redirects in 4.4
1 parent afad962 commit 7538371

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

UPGRADE-4.4.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ WebProfilerBundle
323323

324324
* Deprecated the `ExceptionController` class in favor of `ExceptionErrorController`
325325
* Deprecated the `TemplateManager::templateExists()` method
326+
* Deprecated the `web_profiler.intercept_redirects` config option,
327+
toolbar for the redirected resource contains a link to the redirect response profile instead.
326328

327329
WebServerBundle
328330
---------------

UPGRADE-5.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ WebProfilerBundle
577577

578578
* Removed the `ExceptionController::templateExists()` method
579579
* Removed the `TemplateManager::templateExists()` method
580+
* Removed the `web_profiler.intercept_redirects` config option,
581+
toolbar for the redirected resource contains a link to the redirect response profile instead.
580582

581583
Workflow
582584
--------

src/Symfony/Bundle/WebProfilerBundle/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CHANGELOG
1212
* deprecated the `ExceptionController` in favor of `ExceptionPanelController`
1313
* marked all classes of the WebProfilerBundle as internal
1414
* added a section with the stamps of a message after it is dispatched in the Messenger panel
15+
* deprecated the `web_profiler.intercept_redirects` config option,
16+
toolbar for the redirected resource contains a link to the redirect response profile instead.
1517

1618
4.3.0
1719
-----

src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ public function load(array $configs, ContainerBuilder $container)
5454
$container->setParameter('web_profiler.debug_toolbar.mode', $config['toolbar'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED);
5555
}
5656

57+
if ($config['intercept_redirects']) {
58+
@trigger_error(
59+
'The intercept_redirects option is deprecated since version 4.4 and will be removed in 5.0.' .
60+
'Toolbar for the redirected resource now contains a link to the redirect response profile instead.',
61+
E_USER_DEPRECATED
62+
);
63+
}
64+
5765
if (Kernel::VERSION_ID >= 40008 || (Kernel::VERSION_ID >= 30408 && Kernel::VERSION_ID < 40000)) {
5866
$container->getDefinition('debug.file_link_formatter')
5967
->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));

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