File tree Expand file tree Collapse file tree 3 files changed +26
-33
lines changed Expand file tree Collapse file tree 3 files changed +26
-33
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,8 @@ console::
489
489
{
490
490
public function testExecute(): void
491
491
{
492
- $kernel = self::bootKernel();
493
- $application = new Application($kernel);
492
+ self::bootKernel();
493
+ $application = new Application(self:: $kernel);
494
494
495
495
$command = $application->find('app:create-user');
496
496
$commandTester = new CommandTester($command);
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ work:
132
132
branch (you can find them on the `Symfony releases page `_). E.g. if you
133
133
found a bug introduced in ``v5.1.10 ``, you need to work on ``5.4 ``.
134
134
135
- * ``6.4 ``, if you are adding a new feature.
135
+ * ``7.1 ``, if you are adding a new feature.
136
136
137
137
The only exception is when a new :doc: `major Symfony version </contributing/community/releases >`
138
138
(5.0, 6.0, etc.) comes out every two years. Because of the
Original file line number Diff line number Diff line change @@ -479,25 +479,21 @@ user logs out::
479
479
.. code-block :: php
480
480
481
481
// config/packages/security.php
482
- $container->loadFromExtension('security', [
482
+
483
+ // ...
484
+
485
+ return static function (SecurityConfig $securityConfig): void {
483
486
// ...
484
- 'firewalls' => [
485
- 'main' => [
486
- 'logout' => [
487
- 'delete_cookies' => [
488
- 'cookie1-name' => null,
489
- 'cookie2-name' => [
490
- 'path' => '/',
491
- ],
492
- 'cookie3-name' => [
493
- 'path' => null,
494
- 'domain' => 'example.com',
495
- ],
496
- ],
497
- ],
498
- ],
499
- ],
500
- ]);
487
+
488
+ $securityConfig->firewall('main')
489
+ ->logout()
490
+ ->deleteCookie('cookie1-name')
491
+ ->deleteCookie('cookie2-name')
492
+ ->path('/')
493
+ ->deleteCookie('cookie3-name')
494
+ ->path(null)
495
+ ->domain('example.com');
496
+ };
501
497
502
498
503
499
clear_site_data
@@ -554,19 +550,16 @@ It's also possible to use ``*`` as a wildcard for all directives:
554
550
.. code-block :: php
555
551
556
552
// config/packages/security.php
557
- $container->loadFromExtension('security', [
553
+
554
+ // ...
555
+
556
+ return static function (SecurityConfig $securityConfig): void {
558
557
// ...
559
- 'firewalls' => [
560
- 'main' => [
561
- 'logout' => [
562
- 'clear-site-data' => [
563
- 'cookies',
564
- 'storage',
565
- ],
566
- ],
567
- ],
568
- ],
569
- ]);
558
+
559
+ $securityConfig->firewall('main')
560
+ ->logout()
561
+ ->clearSiteData(['cookies', 'storage']);
562
+ };
570
563
571
564
invalidate_session
572
565
..................
You can’t perform that action at this time.
0 commit comments