Skip to content

Commit 5f7c5f6

Browse files
Minor reword
1 parent 56488ed commit 5f7c5f6

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

testing/http_authentication.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ firewall, but only in the configuration file used by tests:
3030
# app/config/config_test.yml
3131
security:
3232
firewalls:
33-
your_firewall_name:
33+
# replace 'main' by the name of your own firewall
34+
main:
3435
http_basic: ~
3536
3637
.. code-block:: xml
3738
3839
<!-- app/config/config_test.xml -->
3940
<security:config>
40-
<security:firewall name="your_firewall_name">
41+
<!-- replace 'main' by the name of your own firewall -->
42+
<security:firewall name="main">
4143
<security:http-basic />
4244
</security:firewall>
4345
</security:config>
@@ -47,18 +49,13 @@ firewall, but only in the configuration file used by tests:
4749
// app/config/config_test.php
4850
$container->loadFromExtension('security', array(
4951
'firewalls' => array(
50-
'your_firewall_name' => array(
52+
// replace 'main' by the name of your own firewall
53+
'main' => array(
5154
'http_basic' => array(),
5255
),
5356
),
5457
));
5558
56-
.. caution::
57-
58-
It's crucial to use the same firewall name which is used in ``security.yml`` (e.g. ``main``
59-
instead of ``your_firewall_name``). So you won't define a *new* element (a new firewall)
60-
under ``security.firewalls``, but alter the original firewall configuration.
61-
6259
Tests can now authenticate via HTTP passing the username and password as server
6360
variables using the second argument of ``createClient()``::
6461

0 commit comments

Comments
 (0)