diff --git a/cookbook/security/voters_data_permission.rst b/cookbook/security/voters_data_permission.rst index 1873d4100bb..e27a86669be 100644 --- a/cookbook/security/voters_data_permission.rst +++ b/cookbook/security/voters_data_permission.rst @@ -56,6 +56,8 @@ Creating the Custom Voter The goal is to create a voter that checks if a user has access to view or edit a particular object. Here's an example implementation: +.. code-block:: php + // src/Acme/DemoBundle/Security/Authorization/Voter/PostVoter.php namespace Acme\DemoBundle\Security\Authorization\Voter;