Skip to content

Commit aa5f86b

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Use fourth argument of RoutingConfigurator instead of non-existent method Correcting bugs for provider and JSON login
2 parents 038872a + c49360d commit aa5f86b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

routing.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,9 +1427,14 @@ when importing the routes.
14271427
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
14281428
14291429
return function (RoutingConfigurator $routes) {
1430-
// use the optional fourth argument of import() to exclude some files
1431-
// or subdirectories when loading annotations
1432-
$routes->import('../../src/Controller/', 'annotation')
1430+
$routes->import(
1431+
'../../src/Controller/',
1432+
'annotation',
1433+
false,
1434+
// the optional fourth argument is used to exclude some files
1435+
// or subdirectories when loading annotations
1436+
'../../src/Controller/{DebugEmailController}.php'
1437+
)
14331438
// this is added to the beginning of all imported route URLs
14341439
->prefix('/blog')
14351440
@@ -1442,9 +1447,6 @@ when importing the routes.
14421447
14431448
// these requirements are added to all imported routes
14441449
->requirements(['_locale' => 'en|es|fr'])
1445-
1446-
// you can optionally exclude some files/subdirectories when loading annotations
1447-
->exclude('../../src/Controller/{DebugEmailController}.php')
14481450
;
14491451
};
14501452

security.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ will be able to authenticate (e.g. login form, API token, etc).
486486
security: false
487487
main:
488488
lazy: true
489-
provider: users_in_memory
489+
# provider that you set earlier inside providers
490+
provider: app_user_provider
490491
491492
# activate different ways to authenticate
492493
# https://symfony.com/doc/current/security.html#firewalls-authentication

0 commit comments

Comments
 (0)