File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ edit a particular object. Here's an example implementation::
59
59
// src/Acme/DemoBundle/Security/Authorization/Voter/PostVoter.php
60
60
namespace Acme\DemoBundle\Security\Authorization\Voter;
61
61
62
- use Symfony\Component\Security\Core\Exception\InvalidArgumentException;
63
62
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
64
63
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
65
64
use Symfony\Component\Security\Core\User\UserInterface;
@@ -98,7 +97,7 @@ edit a particular object. Here's an example implementation::
98
97
// this isn't a requirement, it's just one easy way for you to
99
98
// design your voter
100
99
if(1 !== count($attributes)) {
101
- throw new InvalidArgumentException(
100
+ throw new \ InvalidArgumentException(
102
101
'Only one attribute is allowed for VIEW or EDIT'
103
102
);
104
103
}
You can’t perform that action at this time.
0 commit comments