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 @@ -61,7 +61,6 @@ edit a particular object. Here's an example implementation:
61
61
// src/Acme/DemoBundle/Security/Authorization/Voter/PostVoter.php
62
62
namespace Acme\DemoBundle\Security\Authorization\Voter;
63
63
64
- use Symfony\Component\Security\Core\Exception\InvalidArgumentException;
65
64
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
66
65
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
67
66
use Symfony\Component\Security\Core\User\UserInterface;
@@ -100,7 +99,7 @@ edit a particular object. Here's an example implementation:
100
99
// this isn't a requirement, it's just one easy way for you to
101
100
// design your voter
102
101
if(1 !== count($attributes)) {
103
- throw new InvalidArgumentException(
102
+ throw new \ InvalidArgumentException(
104
103
'Only one attribute is allowed for VIEW or EDIT'
105
104
);
106
105
}
You can’t perform that action at this time.
0 commit comments