@@ -37,6 +37,49 @@ install the security feature before using it:
37
37
38
38
$ composer require symfony/security-bundle
39
39
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
+
40
83
.. _initial-security-yml-setup-authentication :
41
84
.. _initial-security-yaml-setup-authentication :
42
85
.. _create-user-class :
0 commit comments