Skip to content

Commit

Permalink
fixed wrongly linked dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gondo authored and weaverryan committed Aug 19, 2014
1 parent 4ea4dfe commit 0d16851
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cookbook/security/voters_data_permission.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ edit a particular object. Here's an example implementation::
// src/Acme/DemoBundle/Security/Authorization/Voter/PostVoter.php
namespace Acme\DemoBundle\Security\Authorization\Voter;

use Symfony\Component\Security\Core\Exception\InvalidArgumentException;
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\User\UserInterface;
Expand Down Expand Up @@ -98,7 +97,7 @@ edit a particular object. Here's an example implementation::
// this isn't a requirement, it's just one easy way for you to
// design your voter
if(1 !== count($attributes)) {
throw new InvalidArgumentException(
throw new \InvalidArgumentException(
'Only one attribute is allowed for VIEW or EDIT'
);
}
Expand Down

0 comments on commit 0d16851

Please sign in to comment.