Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5c9f2a

Browse filesBrowse files
committed
bug #4138 fixed wrongly linked dependency (gondo)
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4138). Discussion ---------- fixed wrongly linked dependency Commits ------- 3a84396 fixed wrongly linked dependency
2 parents 4ea4dfe + 0d16851 commit b5c9f2a
Copy full SHA for b5c9f2a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎cookbook/security/voters_data_permission.rst

Copy file name to clipboardExpand all lines: cookbook/security/voters_data_permission.rst
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ edit a particular object. Here's an example implementation::
5959
// src/Acme/DemoBundle/Security/Authorization/Voter/PostVoter.php
6060
namespace Acme\DemoBundle\Security\Authorization\Voter;
6161

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.