diff --git a/cookbook/security/remember_me.rst b/cookbook/security/remember_me.rst index f58aab6ac4a..4a302a16c49 100644 --- a/cookbook/security/remember_me.rst +++ b/cookbook/security/remember_me.rst @@ -175,15 +175,15 @@ In the following example, the action is only allowed if the user has the The ``security.authorization_checker`` service was introduced in Symfony 2.6. Prior to Symfony 2.6, you had to use the ``isGranted()`` method of the ``security.context`` service. -You can also choose to install and use the optional JMSSecurityExtraBundle_, -which can secure your controller using annotations: +If your application is based on the Symfony Standard Edition, you can also secure +your controller using annotations: .. code-block:: php - use JMS\SecurityExtraBundle\Annotation\Secure; + use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; /** - * @Secure(roles="IS_AUTHENTICATED_FULLY") + * @Security("has_role('IS_AUTHENTICATED_FULLY')") */ public function editAction($name) { @@ -212,5 +212,3 @@ which can secure your controller using annotations: For more information on securing services or methods in this way, see :doc:`/cookbook/security/securing_services`. - -.. _JMSSecurityExtraBundle: https://github.com/schmittjoh/JMSSecurityExtraBundle