File tree 1 file changed +14
-18
lines changed
1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -119,25 +119,21 @@ user logs out::
119
119
.. code-block :: php
120
120
121
121
// config/packages/security.php
122
- $container->loadFromExtension('security', [
122
+
123
+ // ...
124
+
125
+ return static function (SecurityConfig $securityConfig): void {
123
126
// ...
124
- 'firewalls' => [
125
- 'main' => [
126
- 'logout' => [
127
- 'delete_cookies' => [
128
- 'cookie1-name' => null,
129
- 'cookie2-name' => [
130
- 'path' => '/',
131
- ],
132
- 'cookie3-name' => [
133
- 'path' => null,
134
- 'domain' => 'example.com',
135
- ],
136
- ],
137
- ],
138
- ],
139
- ],
140
- ]);
127
+
128
+ $securityConfig->firewall('main')
129
+ ->logout()
130
+ ->deleteCookie('cookie1-name')
131
+ ->deleteCookie('cookie2-name')
132
+ ->path('/')
133
+ ->deleteCookie('cookie3-name')
134
+ ->path(null)
135
+ ->domain('example.com');
136
+ };
141
137
142
138
erase_credentials
143
139
~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments