Skip to content

Commit 3a84396

Browse files
committed
fixed wrongly linked dependency
1 parent bb39863 commit 3a84396

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cookbook/security/voters_data_permission.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ edit a particular object. Here's an example implementation:
6161
// src/Acme/DemoBundle/Security/Authorization/Voter/PostVoter.php
6262
namespace Acme\DemoBundle\Security\Authorization\Voter;
6363
64-
use Symfony\Component\Security\Core\Exception\InvalidArgumentException;
6564
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
6665
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
6766
use Symfony\Component\Security\Core\User\UserInterface;
@@ -100,7 +99,7 @@ edit a particular object. Here's an example implementation:
10099
// this isn't a requirement, it's just one easy way for you to
101100
// design your voter
102101
if(1 !== count($attributes)) {
103-
throw new InvalidArgumentException(
102+
throw new \InvalidArgumentException(
104103
'Only one attribute is allowed for VIEW or EDIT'
105104
);
106105
}

0 commit comments

Comments
 (0)