diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-09-27 11:19:34 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-09-27 11:19:34 +0200 |
commit | 373843320ff0590eefdbff5653d758e04dcd4ddd (patch) | |
tree | 8be044e5e6e1ff66bfcc2793782895e3b238472e /Core/Tests/Exception/CustomUserMessageAuthenticationExceptionTest.php | |
parent | 137ba28714a50c9300d463037af4ed7769a09077 (diff) | |
parent | af905c55f14b63ef797cb23bb19dcdb5b0e2a3f0 (diff) | |
download | symfony-security-373843320ff0590eefdbff5653d758e04dcd4ddd.zip symfony-security-373843320ff0590eefdbff5653d758e04dcd4ddd.tar.gz symfony-security-373843320ff0590eefdbff5653d758e04dcd4ddd.tar.bz2 |
bug #15921 Abstract voter tweaks (weaverryan)
This PR was merged into the 2.8 branch.
Discussion
----------
Abstract voter tweaks
| Q | A
| ------------- | ---
| Bug fix? | yes (a little)
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Based on suggestions from stof in #15870, this simplifies the BC and deprecation throwing code. This also adds a BadMethodCallException in case the user doesn't override `isGranted` *or* `voteOnAttribute`, because that's just plain wrong (as is calling `isGranted()` on the parent class directly, since that was formerly abstract).
Commits
-------
c03f5c2 Massively simplifying the BC and deprecated-throwing code thanks to suggestions by stof in #15870
Diffstat (limited to 'Core/Tests/Exception/CustomUserMessageAuthenticationExceptionTest.php')
0 files changed, 0 insertions, 0 deletions