Skip to content

Commit bb11c2e

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Update security.rst
2 parents a747c2a + ee88c48 commit bb11c2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

security.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,7 @@ and set the ``limiter`` option to its service ID:
15871587
$globalFactory: '@limiter.ip_login'
15881588
# localFactory is the limiter for username+IP
15891589
$localFactory: '@limiter.username_ip_login'
1590+
$secret: '%kernel.secret%'
15901591
15911592
security:
15921593
firewalls:
@@ -1637,6 +1638,8 @@ and set the ``limiter`` option to its service ID:
16371638
<srv:argument type="service" id="limiter.ip_login"/>
16381639
<!-- 2nd argument is the limiter for username+IP -->
16391640
<srv:argument type="service" id="limiter.username_ip_login"/>
1641+
<!-- 3rd argument is the app secret -->
1642+
<srv:argument type="service" id="%kernel.secret%"/>
16401643
</srv:service>
16411644
</srv:services>
16421645
@@ -1679,6 +1682,8 @@ and set the ``limiter`` option to its service ID:
16791682
new Reference('limiter.ip_login'),
16801683
// 2nd argument is the limiter for username+IP
16811684
new Reference('limiter.username_ip_login'),
1685+
// 3rd argument is the app secret
1686+
new Reference('kernel.secret'),
16821687
]);
16831688
16841689
$security->firewall('main')

0 commit comments

Comments
 (0)