Skip to content

change occurences of config.[yml,xml,php] by security.[yml,xml,php] for ... #937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ You can define as many URL patterns as you need - each is a regular expression.

.. code-block:: yaml

# app/config/config.yml
# app/config/security.yml
security:
# ...
access_control:
Expand All @@ -687,7 +687,7 @@ You can define as many URL patterns as you need - each is a regular expression.

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<!-- ... -->
<rule path="^/admin/users" role="ROLE_SUPER_ADMIN" />
Expand All @@ -696,7 +696,7 @@ You can define as many URL patterns as you need - each is a regular expression.

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
// ...
'access_control' => array(
Expand Down Expand Up @@ -895,7 +895,7 @@ In fact, you've seen this already in the example in this chapter.

.. code-block:: yaml

# app/config/config.yml
# app/config/security.yml
security:
# ...
providers:
Expand All @@ -907,7 +907,7 @@ In fact, you've seen this already in the example in this chapter.

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<!-- ... -->
<provider name="default_provider">
Expand All @@ -920,7 +920,7 @@ In fact, you've seen this already in the example in this chapter.

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
// ...
'providers' => array(
Expand Down Expand Up @@ -1069,7 +1069,7 @@ do the following:

.. code-block:: yaml

# app/config/config.yml
# app/config/security.yml
security:
# ...
providers:
Expand All @@ -1087,7 +1087,7 @@ do the following:

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<!-- ... -->
<provider name="in_memory">
Expand All @@ -1102,7 +1102,7 @@ do the following:

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
// ...
'providers' => array(
Expand Down Expand Up @@ -1139,7 +1139,7 @@ configure the encoder for that user:

.. code-block:: yaml

# app/config/config.yml
# app/config/security.yml
security:
# ...

Expand All @@ -1148,7 +1148,7 @@ configure the encoder for that user:

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<!-- ... -->

Expand All @@ -1157,7 +1157,7 @@ configure the encoder for that user:

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
// ...

Expand Down Expand Up @@ -1245,7 +1245,7 @@ a new provider that chains the two together:

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<provider name="chain_provider">
<chain>
Expand All @@ -1263,7 +1263,7 @@ a new provider that chains the two together:

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
'providers' => array(
'chain_provider' => array(
Expand Down Expand Up @@ -1309,7 +1309,7 @@ the user from both the ``in_memory`` and ``user_db`` providers.

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<provider name=="main_provider">
<memory>
Expand All @@ -1321,7 +1321,7 @@ the user from both the ``in_memory`` and ``user_db`` providers.

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
'providers' => array(
'main_provider' => array(
Expand All @@ -1343,7 +1343,7 @@ the first provider is always used:

.. code-block:: yaml

# app/config/config.yml
# app/config/security.yml
security:
firewalls:
secured_area:
Expand All @@ -1356,7 +1356,7 @@ the first provider is always used:

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<firewall name="secured_area" pattern="^/" provider="user_db">
<!-- ... -->
Expand All @@ -1367,7 +1367,7 @@ the first provider is always used:

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
'firewalls' => array(
'secured_area' => array(
Expand Down Expand Up @@ -1458,7 +1458,7 @@ the firewall can handle this automatically for you when you activate the

.. code-block:: yaml

# app/config/config.yml
# app/config/security.yml
security:
firewalls:
secured_area:
Expand All @@ -1470,7 +1470,7 @@ the firewall can handle this automatically for you when you activate the

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- app/config/security.xml -->
<config>
<firewall name="secured_area" pattern="^/">
<!-- ... -->
Expand All @@ -1481,7 +1481,7 @@ the firewall can handle this automatically for you when you activate the

.. code-block:: php

// app/config/config.php
// app/config/security.php
$container->loadFromExtension('security', array(
'firewalls' => array(
'secured_area' => array(
Expand Down