Skip to content

Commit

Permalink
minor #5711 removed service call from controller (sloba88)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xabbuh committed Sep 23, 2015
2 parents 1d1578e + 42fa416 commit 26d7e6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cookbook/security/voters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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('<h1>'.$post->getName().'</h1>');
Expand Down

0 comments on commit 26d7e6d

Please sign in to comment.