Skip to content

Commit 42fa416

Browse files
Slobodan Stanicxabbuh
Slobodan Stanic
authored andcommitted
removed service call from controller
1 parent 1d1578e commit 42fa416

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cookbook/security/voters.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ from the authorization checker is called.
224224
// get a Post instance
225225
$post = ...;
226226
227-
$authChecker = $this->get('security.authorization_checker');
228-
229227
$this->denyAccessUnlessGranted('view', $post, 'Unauthorized access!');
230228
231229
return new Response('<h1>'.$post->getName().'</h1>');

0 commit comments

Comments
 (0)