Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9a7e19

Browse filesBrowse files
[Security] Migrate to ConfigBuilder format
1 parent 7047b79 commit f9a7e19
Copy full SHA for f9a7e19

File tree

Expand file treeCollapse file tree

1 file changed

+14
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-18
lines changed

‎reference/configuration/security.rst

Copy file name to clipboardExpand all lines: reference/configuration/security.rst
+14-18Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff 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
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.