Skip to content

Commit fe38f8b

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Cache] Deprecate the DoctrineProvider class [Form] Document using TranslatableMessage in form help [Security] Add deprecation notices about Guard authenticators
2 parents 30068cf + 21cfd89 commit fe38f8b

File tree

8 files changed

+48
-16
lines changed

8 files changed

+48
-16
lines changed

cache.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
187187
;
188188
};
189189
190+
.. deprecated:: 5.4
191+
192+
The ``default_doctrine_provider`` option was deprecated in Symfony 5.4 and
193+
it will be removed in Symfony 6.0.
194+
190195
.. _cache-create-pools:
191196

192197
Creating Custom (Namespaced) Pools

components/cache/adapters/doctrine_adapter.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,9 @@ third parameters::
3939
A :class:`Symfony\\Component\\Cache\\DoctrineProvider` class is also provided by the
4040
component to use any PSR6-compatible implementations with Doctrine-compatible classes.
4141

42+
.. deprecated:: 5.4
43+
44+
The ``DoctrineProvider`` class was deprecated in Symfony 5.4 and it will
45+
be removed in Symfony 6.0.
46+
4247
.. _`Doctrine Cache`: https://github.com/doctrine/cache
Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
help
22
~~~~
33

4-
**type**: ``string`` **default**: null
4+
**type**: ``string`` or ``TranslatableMessage`` **default**: null
55

66
Allows you to define a help message for the form field, which by default is
77
rendered below the field::
88

9-
$builder->add('zipCode', null, [
10-
'help' => 'The ZIP/Postal code for your credit card\'s billing address.',
11-
]);
9+
use Symfony\Component\Translation\TranslatableMessage;
10+
11+
$builder
12+
->add('zipCode', null, [
13+
'help' => 'The ZIP/Postal code for your credit card\'s billing address.',
14+
])
15+
16+
// ...
17+
18+
->add('status', null, [
19+
'help' => new TranslatableMessage('order.status', ['%order_id%' => $order->getId()], 'store'),
20+
])
21+
;
22+
23+
.. versionadded:: 5.4
24+
25+
Support for passing ``TranslatableMessage`` objects was introduced in Symfony 5.4.

security.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ you to control *every* part of the authentication process (see the next section)
462462
Guard Authenticators
463463
~~~~~~~~~~~~~~~~~~~~
464464

465+
.. deprecated:: 5.3
466+
467+
Guard authenticators are deprecated since Symfony 5.3 in favor of the
468+
:doc:`new authenticator-based system </security/authenticator_manager>`.
469+
465470
A Guard authenticator is a class that gives you *complete* control over your
466471
authentication process. There are many different ways to build an authenticator;
467472
here are a few common use-cases:

security/auth_providers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Built-in Authentication Providers
22
=================================
33

4-
If you need to add authentication to your app, we recommend using
5-
:doc:`Guard authentication </security/guard_authentication>` because it gives you
6-
full control over the process.
4+
If you need to add authentication to your app, we recommend using the
5+
:doc:`new authenticator-based system </security/authenticator_manager>` because
6+
it gives you full control over the process.
77

88
But, Symfony also offers a number of built-in authentication providers: systems
99
that are easier to implement, but harder to customize. If your authentication

security/custom_authentication_provider.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ How to Create a custom Authentication Provider
77
.. caution::
88

99
Creating a custom authentication system is hard, and almost definitely
10-
**not** needed. Instead, see :doc:`/security/guard_authentication` for a
11-
simple way to create an authentication system you will love. Do **not**
12-
keep reading unless you want to learn the lowest level details of
13-
authentication.
10+
**not** needed. Instead, see the
11+
:doc:`new authenticator-based system </security/authenticator_manager>`
1412

1513
Symfony provides support for the most
1614
:doc:`common authentication mechanisms </security/auth_providers>`. However, your

security/guard_authentication.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Custom Authentication System with Guard (API Token Example)
55
===========================================================
66

7+
.. deprecated:: 5.3
8+
9+
Guard authenticators are deprecated since Symfony 5.3 in favor of the
10+
:doc:`new authenticator-based system </security/authenticator_manager>`.
11+
712
Guard authentication can be used to:
813

914
* :doc:`Build a Login Form </security/form_login_setup>`
@@ -14,11 +19,6 @@ Guard authentication can be used to:
1419
and many more. In this example, we'll build an API token authentication
1520
system, so we can learn more about Guard in detail.
1621

17-
.. tip::
18-
19-
A :doc:`new authenticator-based system </security/authenticator_manager>`
20-
was introduced in Symfony 5.1, which will eventually replace Guards in Symfony 6.0.
21-
2222
Step 1) Prepare your User Class
2323
-------------------------------
2424

security/multiple_guard_authenticators.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
How to Use Multiple Guard Authenticators
22
========================================
33

4+
.. deprecated:: 5.3
5+
6+
Guard authenticators are deprecated since Symfony 5.3 in favor of the
7+
:doc:`new authenticator-based system </security/authenticator_manager>`.
8+
49
The Guard authentication component allows you to use many different
510
authenticators at a time.
611

0 commit comments

Comments
 (0)