Skip to content

Commit b10cf9a

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

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
@@ -492,7 +492,8 @@ will be able to authenticate (e.g. login form, API token, etc).
492492
security: false
493493
main:
494494
lazy: true
495-
provider: users_in_memory
495+
# provider that you set earlier inside providers
496+
provider: app_user_provider
496497
497498
# activate different ways to authenticate
498499
# https://symfony.com/doc/current/security.html#firewalls-authentication

0 commit comments

Comments
 (0)