@@ -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