bug #19272 [Security] fixed DebugAccessDecisionManager::setVoters() (HeahDude)

This PR was merged into the 3.1 branch.

Discussion
----------

[Security] fixed DebugAccessDecisionManager::setVoters()

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/schmittjoh/JMSSecurityExtraBundle/issues/207
| License       | MIT
| Doc PR        | ~

Commits
-------

c1a2a0a [Security] fixed DebugAccessDecisionManager::setVoters()
This commit is contained in:
Fabien Potencier 2016-07-03 09:23:33 +02:00
commit 95c60c8413

View File

@ -62,7 +62,7 @@ class DebugAccessDecisionManager implements AccessDecisionManagerInterface
*/
public function setVoters(array $voters)
{
if (!$this->manager instanceof AccessDecisionManager) {
if (!method_exists($this->manager, 'setVoters')) {
return;
}