Skip to content

Commit 9859c37

Browse files
committed
Remove more references to previous versions
1 parent 71fcb03 commit 9859c37

24 files changed

+13
-59
lines changed

best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ Use the ``auto`` Password Hasher
368368

369369
The :ref:`auto password hasher <reference-security-encoder-auto>` automatically
370370
selects the best possible encoder/hasher depending on your PHP installation.
371-
Starting from Symfony 5.3, the default auto hasher is ``bcrypt``.
371+
Currently, the default auto hasher is ``bcrypt``.
372372

373373
Use Voters to Implement Fine-grained Security Restrictions
374374
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

components/dependency_injection.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,10 @@ config files:
299299
$services = $configurator->services();
300300
301301
$services->set('mailer', 'Mailer')
302-
// the param() method was introduced in Symfony 5.2.
303302
->args([param('mailer.transport')])
304303
;
305304
306305
$services->set('newsletter_manager', 'NewsletterManager')
307-
// In versions earlier to Symfony 5.1 the service() function was called ref()
308306
->call('setMailer', [service('mailer')])
309307
;
310308
};

components/runtime.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,6 @@ logic could be versioned as a part of a normal package. If the application
358358
author decides to use this component, the package maintainer of the Runtime
359359
class will have more control and can fix bugs and add features.
360360

361-
.. note::
362-
363-
Before Symfony 5.3, the Symfony bootstrap logic was part of a Flex recipe.
364-
Since recipes are rarely updated by users, bug patches would rarely be
365-
installed.
366-
367361
The Runtime component is designed to be totally generic and able to run any
368362
application outside of the global state in 6 steps:
369363

components/security/authentication.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ password was valid::
130130
use Symfony\Component\Security\Core\User\InMemoryUserProvider;
131131
use Symfony\Component\Security\Core\User\UserChecker;
132132

133-
// The 'InMemoryUser' class was introduced in Symfony 5.3.
134-
// In previous versions it was called 'User'
135133
$userProvider = new InMemoryUserProvider(
136134
[
137135
'admin' => [

components/security/secure_tools.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ also use them if you want to solve the problem they address.
77

88
.. note::
99

10-
The functions described in this article were introduced in PHP 5.6 or 7.
11-
For older PHP versions, a polyfill is provided by the
12-
`Symfony Polyfill Component`_.
10+
The functions described in this article are available in modern PHP versions.
11+
If your project uses a legacy PHP version, you can use them thanks to some
12+
of the polyfills provided by the `Symfony Polyfill Component`_.
1313

1414
Comparing Strings
1515
~~~~~~~~~~~~~~~~~

event_dispatcher.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ a "main" request or a "sub request"::
220220
{
221221
public function onKernelRequest(RequestEvent $event)
222222
{
223-
// The isMainRequest() method was introduced in Symfony 5.3.
224-
// In previous versions it was called isMasterRequest()
225223
if (!$event->isMainRequest()) {
226224
// don't do anything if it's not the main request
227225
return;

messenger.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,8 @@ it in the ``port`` parameter of the DSN (e.g. ``amqps://localhost?cacert=/etc/ss
10641064

10651065
.. note::
10661066

1067-
With Symfony 5.3 or newer, you can limit the consumer of an AMQP transport to only
1068-
process messages from some queues of an exchange. See :ref:`messenger-limit-queues`.
1067+
You can limit the consumer of an AMQP transport to only process messages
1068+
from some queues of an exchange. See :ref:`messenger-limit-queues`.
10691069

10701070
The transport has a number of other options, including ways to configure
10711071
the exchange, queues binding keys and more. See the documentation on

reference/configuration/security.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ This option is explained in detail in :doc:`/security/access_control`.
125125
hashers
126126
-------
127127

128-
This option defines the algorithm used to *hash* the password of the users
129-
(which in previous Symfony versions was wrongly called *"password encoding"*).
130-
128+
This option defines the algorithm used to *hash* the password of the users.
131129
If your app defines more than one user class, each of them can define its own
132130
hashing algorithm. Also, each algorithm defines different config options:
133131

@@ -320,9 +318,9 @@ hashing algorithm. Also, each algorithm defines different config options:
320318
Using the "auto" Password Hasher
321319
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
322320

323-
It automatically selects the best available hasher. Starting from Symfony 5.3,
324-
it uses the Bcrypt hasher. If PHP or Symfony adds new password hashers in the
325-
future, it might select a different hasher.
321+
It automatically selects the best available hasher, which currently is the
322+
Bcrypt hasher. If PHP or Symfony adds new password hashers in the future, it
323+
might select a different hasher.
326324

327325
Because of this, the length of the hashed passwords may change in the future, so
328326
make sure to allocate enough space for them to be persisted (``varchar(255)``

reference/configuration/swiftmailer.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,6 @@ delivery_addresses
211211

212212
**type**: ``array``
213213

214-
.. note::
215-
216-
In previous versions, this option was called ``delivery_address``.
217-
218214
If set, all email messages will be sent to these addresses instead of being sent
219215
to their actual recipients. This is often useful when developing. For example,
220216
by setting this in the ``config/packages/dev/swiftmailer.yaml`` file, you can

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ command will pre-configure this for you:
221221
# use your user class name here
222222
App\Entity\User:
223223
# Use native password hasher, which auto-selects the best
224-
# possible hashing algorithm (starting from Symfony 5.3 this is "bcrypt")
224+
# possible hashing algorithm (which currently is "bcrypt")
225225
algorithm: auto
226226
227227
.. code-block:: xml

0 commit comments

Comments
 (0)