Skip to content

Commit b55ec30

Browse files
committed
minor #4659 Fixed some code indentation (javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- Fixed some code indentation | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - Commits ------- 0b7cb0e Fixed some code indentation
2 parents 18af18b + 0b7cb0e commit b55ec30

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

cookbook/bundles/installation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ the library on the `Packagist.org`_ site.
3434

3535
Now that you know the package name, you can install it via Composer:
3636

37-
.. code-block:: bash
37+
.. code-block:: bash
3838
39-
$ php composer.phar require friendsofsymfony/user-bundle
39+
$ php composer.phar require friendsofsymfony/user-bundle
4040
4141
This will choose the best version for your project, add it to ``composer.json``
4242
and download the library into the ``vendor/`` directory. If you need a specific

reference/configuration/security.rst

+44-44
Original file line numberDiff line numberDiff line change
@@ -419,20 +419,20 @@ multiple firewalls, the "context" could actually be shared:
419419
420420
.. code-block:: xml
421421
422-
<!-- app/config/security.xml -->
423-
<security:config>
424-
<firewall name="somename" context="my_context">
425-
<! ... ->
426-
</firewall>
427-
<firewall name="othername" context="my_context">
428-
<! ... ->
429-
</firewall>
430-
</security:config>
422+
<!-- app/config/security.xml -->
423+
<security:config>
424+
<firewall name="somename" context="my_context">
425+
<! ... ->
426+
</firewall>
427+
<firewall name="othername" context="my_context">
428+
<! ... ->
429+
</firewall>
430+
</security:config>
431431
432432
.. code-block:: php
433433
434-
// app/config/security.php
435-
$container->loadFromExtension('security', array(
434+
// app/config/security.php
435+
$container->loadFromExtension('security', array(
436436
'firewalls' => array(
437437
'somename' => array(
438438
// ...
@@ -443,7 +443,7 @@ multiple firewalls, the "context" could actually be shared:
443443
'context' => 'my_context'
444444
),
445445
),
446-
));
446+
));
447447
448448
HTTP-Digest Authentication
449449
--------------------------
@@ -452,38 +452,38 @@ To use HTTP-Digest authentication you need to provide a realm and a key:
452452

453453
.. configuration-block::
454454

455-
.. code-block:: yaml
456-
457-
# app/config/security.yml
458-
security:
459-
firewalls:
460-
somename:
461-
http_digest:
462-
key: "a_random_string"
463-
realm: "secure-api"
464-
465-
.. code-block:: xml
466-
467-
<!-- app/config/security.xml -->
468-
<security:config>
469-
<firewall name="somename">
470-
<http-digest key="a_random_string" realm="secure-api" />
471-
</firewall>
472-
</security:config>
473-
474-
.. code-block:: php
475-
476-
// app/config/security.php
477-
$container->loadFromExtension('security', array(
478-
'firewalls' => array(
479-
'somename' => array(
480-
'http_digest' => array(
481-
'key' => 'a_random_string',
482-
'realm' => 'secure-api',
483-
),
484-
),
485-
),
486-
));
455+
.. code-block:: yaml
456+
457+
# app/config/security.yml
458+
security:
459+
firewalls:
460+
somename:
461+
http_digest:
462+
key: "a_random_string"
463+
realm: "secure-api"
464+
465+
.. code-block:: xml
466+
467+
<!-- app/config/security.xml -->
468+
<security:config>
469+
<firewall name="somename">
470+
<http-digest key="a_random_string" realm="secure-api" />
471+
</firewall>
472+
</security:config>
473+
474+
.. code-block:: php
475+
476+
// app/config/security.php
477+
$container->loadFromExtension('security', array(
478+
'firewalls' => array(
479+
'somename' => array(
480+
'http_digest' => array(
481+
'key' => 'a_random_string',
482+
'realm' => 'secure-api',
483+
),
484+
),
485+
),
486+
));
487487
488488
.. _`PBKDF2`: http://en.wikipedia.org/wiki/PBKDF2
489489
.. _`ircmaxell/password-compat`: https://packagist.org/packages/ircmaxell/password-compat

0 commit comments

Comments
 (0)