Skip to content

Commit

Permalink
Merge pull request #211 from d-lobanov/fix_parse_error
Browse files Browse the repository at this point in the history
Fixed Parse error
  • Loading branch information
schmittjoh committed Aug 4, 2016
2 parents 26c175a + 67ce2db commit 8d3b81d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Security/Authorization/RememberingAccessDecisionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
public function setVoters(array $voters)
{
if (!method_exists($this->delegate, 'setVoters')) {
throw new \RuntimeException(sprintf('Decorated implementation of "%s", instance of class "%s" does not have "setVoters" which is required for development environment.', AccessDecisionManagerInterface::class, get_class($this->delegate)));
$interfaceName = 'Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface';

throw new \RuntimeException(sprintf('Decorated implementation of "%s", instance of class "%s" does not have "setVoters" which is required for development environment.', $interfaceName, get_class($this->delegate)));
}

$this->delegate->setVoters($voters);
Expand Down

0 comments on commit 8d3b81d

Please sign in to comment.