From 5c39fdda32c4cc491aca0176afa59acf12241069 Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Sun, 13 Mar 2022 09:06:02 +0100 Subject: [PATCH] Add comment for older Symfony versions --- docs/reference/installation.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/reference/installation.rst b/docs/reference/installation.rst index ab10a8a69..0533ff83e 100644 --- a/docs/reference/installation.rst +++ b/docs/reference/installation.rst @@ -178,6 +178,12 @@ Then, add a new custom firewall handlers for the admin: lifetime: 2629746 path: /admin +.. note:: + + If you run under the old authentication system (Symfony 4.4 or + Symfony 5.4 with `enable_authenticator_manager` set to `false`) + you should add `anonymous` set to `true` inside the admin firewall. + Add role hierarchy, hasher and provider: .. code-block:: yaml @@ -196,6 +202,11 @@ Add role hierarchy, hasher and provider: sonata_user_bundle: id: sonata.user.security.user_provider +.. note:: + + If you run under Symfony 4.4, `password_hashers` keyword inside `security` + does not exist, instead replace on the above configuration with `encoders`. + The last part is to define 4 new access control rules: .. code-block:: yaml @@ -218,6 +229,11 @@ The last part is to define 4 new access control rules: - { path: ^/admin/, role: ROLE_ADMIN } - { path: ^/.*, role: PUBLIC_ACCESS } +.. note:: + + If you run under Symfony 4.4, `PUBLIC_ACCESS` role does not exist, instead + replace on the above configuration with `IS_AUTHENTICATED_ANONYMOUSLY`. + Mailer Configuration --------------------