Skip to content

[Draft][WebProfiler] Removed intercept_redirects config option #33607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dorumd
Copy link
Contributor

@dorumd dorumd commented Sep 17, 2019

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? yes
Tickets #33467
License MIT
Doc PR -

As a follow up of #33507, where intercept_redirects config option was deprecated, removing it in master.

@dorumd dorumd force-pushed the i33467-remove-deprecated-intercept-redirects branch from e7c7f59 to fddbc09 Compare September 17, 2019 08:30
protected $mode;
protected $excludedAjaxPaths;
private $cspHandler;

public function __construct(Environment $twig, bool $interceptRedirects = false, int $mode = self::ENABLED, UrlGeneratorInterface $urlGenerator = null, string $excludedAjaxPaths = '^/bundles|^/_wdt', ContentSecurityPolicyHandler $cspHandler = null)
public function __construct(Environment $twig, int $mode = self::ENABLED, UrlGeneratorInterface $urlGenerator = null, string $excludedAjaxPaths = '^/bundles|^/_wdt', ContentSecurityPolicyHandler $cspHandler = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a BC layer for this signature change ? This class is not marked as @internal

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should mark it as @internal in 4.4 IMHO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is marked as final, it should be enough ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxhelias no. BC breaks in argument position is related to using the class, not to extending it.

@dorumd dorumd changed the title [WebProfiler] Removed intercept_redirects config option [Draft][WebProfiler] Removed intercept_redirects config option Sep 17, 2019
@dorumd dorumd force-pushed the i33467-remove-deprecated-intercept-redirects branch from fddbc09 to 32ceea6 Compare September 17, 2019 09:09
@fabpot
Copy link
Member

fabpot commented Sep 18, 2019

People are apparently using this feature; so we are going to revert it. Sorry for the time you spent on this.

@fabpot fabpot closed this Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants