-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle][Security][Translation] trigger some deprecations for legacy methods #25131
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
xabbuh
commented
Nov 23, 2017
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes |
Fixed tickets | |
License | MIT |
Doc PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to deprecate the logout_on_user_change
firewall config node
@@ -41,7 +41,8 @@ public function addDumper($format, DumperInterface $dumper) | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deprecated
annotations are missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -70,7 +70,7 @@ public function __construct(TokenStorageInterface $tokenStorage, iterable $userP | |||
*/ | |||
public function setLogoutOnUserChange($logoutOnUserChange) | |||
{ | |||
// no-op, method to be deprecated in 4.1 | |||
@trigger_error(sprintf('The %s() method is deprecated since 4.1 and will be removed in 5.0.', __METHOD__)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing E_USER_DEPRECATED
error level.
@@ -49,12 +49,11 @@ public function setRelativePathTemplate($relativePathTemplate) | |||
*/ | |||
public function setBackup($backup) | |||
{ | |||
@trigger_error(sprintf('The %s() method is deprecated since 4.1 and will be removed in 5.0.', __METHOD__)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing E_USER_DEPRECATED
error level.
@@ -41,7 +41,8 @@ public function addDumper($format, DumperInterface $dumper) | |||
*/ | |||
public function disableBackup() | |||
{ | |||
// to be deprecated in 4.1 | |||
@trigger_error(sprintf('The %s() method is deprecated since 4.1 and will be removed in 5.0.', __METHOD__)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing E_USER_DEPRECATED
error level.
600c817
to
3909cc4
Compare
f823881
to
7b209e1
Compare
comments addressed, tests pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
UPGRADE-4.1.md
Outdated
Security | ||
-------- | ||
|
||
* the `ContextListener::setLogoutOnUserChange()` method is deprecated and will be removed in 5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing cap and dot (same below) and in other files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -41,7 +41,8 @@ public function addDumper($format, DumperInterface $dumper) | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Thank you @xabbuh. |
…eprecations for legacy methods (xabbuh) This PR was merged into the 4.0-dev branch. Discussion ---------- [SecurityBundle][Security][Translation] trigger some deprecations for legacy methods | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- e3396ea trigger some deprecations for legacy methods