8000 minor #5711 removed service call from controller (sloba88) · symfony/symfony-docs@26d7e6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 26d7e6d

Browse files
committed
minor #5711 removed service call from controller (sloba88)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #5711). Discussion ---------- removed service call from controller | Q | A | ------------- | --- | Doc fix? | [yes] | New docs? | [no] | Applies to | [2.6, 2.7, 2.8] | Fixed tickets | [] As said in #5696 removed left-over unnecessary service call from controller Commits ------- 42fa416 removed service call from controller
2 parents 1d1578e + 42fa416 commit 26d7e6d

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)
0