diff --git a/best_practices/security.rst b/best_practices/security.rst index 0519b917edf..19ce6574c14 100644 --- a/best_practices/security.rst +++ b/best_practices/security.rst @@ -73,7 +73,7 @@ Authorization (i.e. Denying Access) ----------------------------------- Symfony gives you several ways to enforce authorization, including the ``access_control`` -configuration in :doc:`security.yml ` the +configuration in :doc:`security.yml `, the :ref:`@Security annotation ` and using :ref:`isGranted ` on the ``security.context`` service directly. @@ -232,8 +232,8 @@ Now, you can use the voter with the ``@Security`` annotation: // ... } -You can also use this directly with the ``security.context`` service, or -via the even easier shortcut in a controller: +You can also use this directly with the ``security.context`` service or via +the even easier shortcut in a controller: .. code-block:: php