@@ -37,6 +37,49 @@ install the security feature before using it:
3737
3838 $ composer require symfony/security-bundle
3939
40+
41+ .. tip ::
42+
43+ A :doc: `new experimental Security </security/experimental_authenticators >`
44+ was introduced in Symfony 5.1, which will eventually replace security in
45+ Symfony 6.0. This system is almost fully backwards compatible with the
46+ current Symfony security, add this line to your security configuration to start
47+ using it:
48+
49+ .. configuration-block ::
50+
51+ .. code-block :: yaml
52+
53+ # config/packages/security.yaml
54+ security :
55+ enable_authenticator_manager : true
56+ # ...
57+
58+ .. code-block :: xml
59+
60+ <!-- config/packages/security.xml -->
61+ <?xml version =" 1.0" encoding =" UTF-8" ?>
62+ <srv : container xmlns =" http://symfony.com/schema/dic/security"
63+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
64+ xmlns : srv =" http://symfony.com/schema/dic/services"
65+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
66+ https://symfony.com/schema/dic/services/services-1.0.xsd
67+ http://symfony.com/schema/dic/security
68+ https://symfony.com/schema/dic/security/security-1.0.xsd" >
69+
70+ <config enable-authenticator-manager =" true" >
71+ <!-- ... -->
72+ </config >
73+ </srv : container >
74+
75+ .. code-block :: php
76+
77+ // config/packages/security.php
78+ $container->loadFromExtension('security', [
79+ 'enable_authenticator_manager' => true,
80+ // ...
81+ ]);
82+
4083 .. _initial-security-yml-setup-authentication :
4184.. _initial-security-yaml-setup-authentication :
4285.. _create-user-class :
@@ -1121,6 +1164,7 @@ Authentication (Identifying/Logging in the User)
11211164.. toctree ::
11221165 :maxdepth: 1
11231166
1167+ security/experimental_authenticators
11241168 security/form_login_setup
11251169 security/reset_password
11261170 security/json_login_setup
0 commit comments