@@ -546,6 +546,95 @@ Security
546
546
547
547
* The `VoterInterface::supportsClass` and `supportsAttribute` methods were
548
548
deprecated and will be removed from the interface in 3.0.
549
+
550
+ * The the `key` setting of `anonymous`, `remember_me` and `http_digest`
551
+ is deprecated, and will be removed in 3.0. Use `secret` instead.
552
+
553
+ Before :
554
+
555
+ ` ` ` yaml
556
+ security:
557
+ # ...
558
+ firewalls:
559
+ default:
560
+ # ...
561
+ anonymous: { key: "%secret%" }
562
+ remember_me:
563
+ key: "%secret%"
564
+ http_digest:
565
+ key: "%secret%"
566
+ ` ` `
567
+
568
+ ` ` ` xml
569
+ <!-- ... -->
570
+ <config>
571
+ <!-- ... -->
572
+
573
+ <firewall>
574
+ <!-- ... -->
575
+
576
+ <anonymous key="%secret%"/>
577
+ <remember-me key="%secret%"/>
578
+ <http-digest key="%secret%"/>
579
+ </firewall>
580
+ </config>
581
+ ` ` `
582
+
583
+ ` ` ` php
584
+ // ...
585
+ $container->loadFromExtension('security', array(
586
+ // ...
587
+ 'firewalls' => array(
588
+ // ...
589
+ 'anonymous' => array('key' => '%secret%'),
590
+ 'remember_me' => array('key' => '%secret%'),
591
+ 'http_digest' => array('key' => '%secret%'),
592
+ ),
593
+ ));
594
+ ` ` `
595
+
596
+ After :
597
+
598
+ ` ` ` yaml
599
+ security:
600
+ # ...
601
+ firewalls:
602
+ default:
603
+ # ...
604
+ anonymous: { secret: "%secret%" }
605
+ remember_me:
606
+ secret: "%secret%"
607
+ http_digest:
608
+ secret: "%secret%"
609
+ ` ` `
610
+
611
+ ` ` ` xml
612
+ <!-- ... -->
613
+ <config>
614
+ <!-- ... -->
615
+
616
+ <firewall>
617
+ <!-- ... -->
618
+
619
+ <anonymous secret="%secret%"/>
620
+ <remember-me secret="%secret%"/>
621
+ <http-digest secret="%secret%"/>
622
+ </firewall>
623
+ </config>
624
+ ` ` `
625
+
626
+ ` ` ` php
627
+ // ...
628
+ $container->loadFromExtension('security', array(
629
+ // ...
630
+ 'firewalls' => array(
631
+ // ...
632
+ 'anonymous' => array('secret' => '%secret%'),
633
+ 'remember_me' => array('secret' => '%secret%'),
634
+ 'http_digest' => array('secret' => '%secret%'),
635
+ ),
636
+ ));
637
+ ` ` `
549
638
550
639
* The `intention` option is deprecated for all the authentication listeners,
551
640
and will be removed in 3.0. Use the `csrf_token_id` option instead.
0 commit comments