File tree Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -119,25 +119,21 @@ user logs out::
119119 .. code-block :: php
120120
121121 // config/packages/security.php
122- $container->loadFromExtension('security', [
122+
123+ // ...
124+
125+ return static function (SecurityConfig $securityConfig): void {
123126 // ...
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+ };
141137
142138 erase_credentials
143139~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments