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

security/custom_authentication_provider.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,6 @@ the ``PasswordDigest`` header value matches with the user's password::
216216

217217
public function authenticate(TokenInterface $token): WsseUserToken
218218
{
219-
// The loadUserByIdentifier() and getUserIdentifier() methods were
220-
// introduced in Symfony 5.3. In previous versions they were called
221-
// loadUserByUsername() and getUsername() respectively
222219
$user = $this->userProvider->loadUserByIdentifier($token->getUserIdentifier());
223220

224221
if ($user && $this->validateDigest($token->digest, $token->nonce, $token->created, $user->getPassword())) {
@@ -439,7 +436,6 @@ to service ids that may not exist yet: ``App\Security\Authentication\Provider\Ws
439436
440437
$services->set(WsseListener::class)
441438
->args([
442-
// In versions earlier to Symfony 5.1 the service() function was called ref()
443439
service('security.token_storage'),
444440
service('security.authentication.manager'),
445441
])

security/json_login_setup.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ The next step is to configure a route in your app matching this path:
8484
$user = $this->getUser();
8585
8686
return $this->json([
87-
// The getUserIdentifier() method was introduced in Symfony 5.3.
88-
// In previous versions it was called getUsername()
8987
'username' => $user->getUserIdentifier(),
9088
'roles' => $user->getRoles(),
9189
]);

security/user_provider.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ interface only requires one method: ``loadUserByIdentifier($identifier)``::
135135
{
136136
// ...
137137

138-
// The loadUserByIdentifier() method was introduced in Symfony 5.3.
139-
// In previous versions it was called loadUserByUsername()
140138
public function loadUserByIdentifier(string $usernameOrEmail): ?User
141139
{
142140
$entityManager = $this->getEntityManager();
@@ -231,8 +229,6 @@ users will hash their passwords:
231229
# ...
232230
password_hashers:
233231
# this internal class is used by Symfony to represent in-memory users
234-
# (the 'InMemoryUser' class was introduced in Symfony 5.3.
235-
# In previous versions it was called 'User')
236232
Symfony\Component\Security\Core\User\InMemoryUser: 'auto'
237233
238234
.. code-block:: xml
@@ -251,8 +247,6 @@ users will hash their passwords:
251247
<!-- ... -->
252248
253249
<!-- this internal class is used by Symfony to represent in-memory users -->
254-
<!-- (the 'InMemoryUser' class was introduced in Symfony 5.3.
255-
In previous versions it was called 'User') -->
256250
<security:password-hasher class="Symfony\Component\Security\Core\User\InMemoryUser"
257251
algorithm="auto"
258252
/>
@@ -264,8 +258,6 @@ users will hash their passwords:
264258
// config/packages/security.php
265259
266260
// this internal class is used by Symfony to represent in-memory users
267-
// (the 'InMemoryUser' class was introduced in Symfony 5.3.
268-
// In previous versions it was called 'User')
269261
use Symfony\Component\Security\Core\User\InMemoryUser;
270262
use Symfony\Config\SecurityConfig;
271263
@@ -373,9 +365,6 @@ command will generate a nice skeleton to get you started::
373365
class UserProvider implements UserProviderInterface, PasswordUpgraderInterface
374366
{
375367
/**
376-
* The loadUserByIdentifier() method was introduced in Symfony 5.3.
377-
* In previous versions it was called loadUserByUsername()
378-
*
379368
* Symfony calls this method if you use features like switch_user
380369
* or remember_me. If you're not using these features, you do not
381370
* need to implement this method.

service_container.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ parameter and in PHP config use the ``service()`` function:
533533
$services = $configurator->services();
534534
535535
$services->set(MessageGenerator::class)
536-
// In versions earlier to Symfony 5.1 the service() function was called ref()
537536
->args([service('logger')])
538537
;
539538
};

service_container/alias_private.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ The following example shows how to inject an anonymous service into another serv
276276
$services = $configurator->services();
277277
278278
$services->set(Foo::class)
279-
// In versions earlier to Symfony 5.1 the inline_service() function was called inline()
280279
->args([inline_service(AnonymousBar::class)]);
281280
};
282281

service_container/calls.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ To configure the container to call the ``setLogger`` method, use the ``calls`` k
7373
// ...
7474
7575
$services->set(MessageGenerator::class)
76-
// In versions earlier to Symfony 5.1 the service() function was called ref()
7776
->call('setLogger', [service('logger')]);
7877
};
7978

service_container/configurators.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ all the classes are already loaded as services. All you need to do is specify th
179179
$services->load('App\\', '../src/*');
180180
181181
// override the services to set the configurator
182-
// In versions earlier to Symfony 5.1 the service() function was called ref()
183182
$services->set(NewsletterManager::class)
184183
->configurator(service(EmailConfigurator::class), 'configure');
185184

service_container/factories.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ Configuration of the service container then looks like this:
163163
// second, use the factory service as the first argument of the 'factory'
164164
// method and the factory method as the second argument
165165
$services->set(NewsletterManager::class)
166-
// In versions earlier to Symfony 5.1 the service() function was called ref()
167166
->factory([service(NewsletterManagerFactory::class), 'createNewsletterManager']);
168167
};
169168

service_container/injection_types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ service container configuration:
7878
$services = $configurator->services();
7979
8080
$services->set(NewsletterManager::class)
81-
// In versions earlier to Symfony 5.1 the service() function was called ref()
8281
->args(service('mailer'));
8382
};
8483

service_container/optional_dependencies.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ if the service does not exist:
4242
$services = $configurator->services();
4343
4444
$services->set(NewsletterManager::class)
45-
// In versions earlier to Symfony 5.1 the service() function was called ref()
4645
->args([service('logger')->nullOnInvalid()]);
4746
};
4847

service_container/parent_services.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ avoid duplicated service definitions:
128128
$services->set(BaseDoctrineRepository::class)
129129
->abstract()
130130
->args([service('doctrine.orm.entity_manager')])
131-
// In versions earlier to Symfony 5.1 the service() function was called ref()
132131
->call('setLogger', [service('logger')])
133132
;
134133

service_container/service_decoration.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ automatically changed to ``'.inner'``):
172172
$services->set(DecoratingMailer::class)
173173
->decorate(Mailer::class)
174174
// pass the old service as an argument
175-
// In versions earlier to Symfony 5.1 the service() function was called ref()
176175
->args([service('.inner')]);
177176
};
178177

service_container/service_subscribers_locators.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ other services. To do so, create a new service definition using the
372372
$services = $configurator->services();
373373
374374
$services->set('app.command_handler_locator', ServiceLocator::class)
375-
// In versions earlier to Symfony 5.1 the service() function was called ref()
376375
->args([[
377376
'App\FooCommand' => service('app.command_handler.foo'),
378377
'App\BarCommand' => service('app.command_handler.bar'),

translation/debug.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ command helps you to find these missing or unused translation messages templates
2121

2222
The extractors can't find messages translated outside templates (like form
2323
labels or controllers) unless using :ref:`translatable-objects` or calling
24-
the ``trans()`` method on a translator (since Symfony 5.3). Dynamic
25-
translations using variables or expressions in templates are not
26-
detected either:
24+
the ``trans()`` method on a translator. Dynamic translations using variables
25+
or expressions in templates are not detected either:
2726

2827
.. code-block:: twig
2928

0 commit comments

Comments
 (0)