Commit a282dd08 authored by Fabien Potencier's avatar Fabien Potencier

added more information in the docs

parent 24598511
...@@ -110,9 +110,10 @@ under ``/admin/``:: ...@@ -110,9 +110,10 @@ under ``/admin/``::
), ),
); );
The ``pattern`` is a regular expression; the ``http`` setting tells the The ``pattern`` is a regular expression (it can also be a `RequestMatcher
security layer to use HTTP basic authentication and the ``users`` entry <http://api.symfony.com/master/Symfony/Component/HttpFoundation/RequestMatcher.html>`_
defines valid users. instance); the ``http`` setting tells the security layer to use HTTP basic
authentication and the ``users`` entry defines valid users.
Each user is defined with the following information: Each user is defined with the following information:
...@@ -376,6 +377,12 @@ With the above configuration, users must have the ``ROLE_ADMIN`` to access the ...@@ -376,6 +377,12 @@ With the above configuration, users must have the ``ROLE_ADMIN`` to access the
Furthermore, the admin section can only be accessible via HTTPS (if that's not Furthermore, the admin section can only be accessible via HTTPS (if that's not
the case, the user will be automatically redirected). the case, the user will be automatically redirected).
.. note::
The first argument can also be a `RequestMatcher
<http://api.symfony.com/master/Symfony/Component/HttpFoundation/RequestMatcher.html>`_
instance.
Defining a custom User Provider Defining a custom User Provider
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment