diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-09-25 13:44:05 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-09-25 13:44:05 +0200 |
commit | d250979823c59287ae69988bc9898632a2eea201 (patch) | |
tree | a1a61c102a8bf72d623ebbc0dc37004f999e06ad /Core/Encoder/EncoderFactory.php | |
parent | a99b4984c7212fa88858e26526e4d8e6d4af7a39 (diff) | |
parent | 0189f2b2191ba9cec13b7e53265824943d12700f (diff) | |
download | symfony-security-d250979823c59287ae69988bc9898632a2eea201.zip symfony-security-d250979823c59287ae69988bc9898632a2eea201.tar.gz symfony-security-d250979823c59287ae69988bc9898632a2eea201.tar.bz2 |
feature #15151 [Security] Deprecated supportsAttribute and supportsClass methods (WouterJ)
This PR was squashed before being merged into the 2.8 branch (closes #15151).
Discussion
----------
[Security] Deprecated supportsAttribute and supportsClass methods
These methods aren't used at all in a Symfony application and don't make sense to use in the application. They are only used internally in the voters. This means the voter interface can be made much easier.
I'm not sure how we do these deprecations, should we remove the methods from the interface now already? Also, I don't think it's possible to trigger deprecation notices for the voter methods?
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | one of #11742
| License | MIT
| Doc PR | -
Abstract Voter
---
There is one remaining question about the abstract voter. This currently has abstract `getSupportedAttributes()` and `getSupportedClass()` methods. One of the reasons to remove the methods for the interface was that these methods are not flexible. Does it make sense to deprecate these methods as well and replace them by an abstract `protected vote(array $attributes, $class)` method in the `AbstractVoter` (which is called from `AbstractVoter#vote()`) ?
Commits
-------
6588708 [Security] Deprecated supportsAttribute and supportsClass methods
Diffstat (limited to 'Core/Encoder/EncoderFactory.php')
0 files changed, 0 insertions, 0 deletions