Skip to content

Commit

Permalink
Add comment for older Symfony versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Mar 13, 2022
1 parent 14202aa commit 5c39fdd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/reference/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
--------------------

Expand Down

0 comments on commit 5c39fdd

Please sign in to comment.