From ff4f37a8c68b74597958d2e6b175c8febd4d6bb5 Mon Sep 17 00:00:00 2001 From: Slobodan Stanic Date: Sun, 20 Sep 2015 15:35:17 +0300 Subject: [PATCH] removed service call from controller --- cookbook/security/voters.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/cookbook/security/voters.rst b/cookbook/security/voters.rst index 9a2a4c6a244..db56fb9af2e 100644 --- a/cookbook/security/voters.rst +++ b/cookbook/security/voters.rst @@ -224,8 +224,6 @@ from the authorization checker is called. // get a Post instance $post = ...; - $authChecker = $this->get('security.authorization_checker'); - $this->denyAccessUnlessGranted('view', $post, 'Unauthorized access!'); return new Response('

'.$post->getName().'

');