Skip to content

Commit 376bbf6

Browse files
committed
Remove deprecated directives too
1 parent 3742098 commit 376bbf6

File tree

13 files changed

+5
-193
lines changed

13 files changed

+5
-193
lines changed

components/http_foundation/sessions.rst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,6 @@ and "Remember Me" login settings or other user based state information.
166166
:class:`Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag`
167167
This is the standard default implementation.
168168

169-
:class:`Symfony\\Component\\HttpFoundation\\Session\\Attribute\\NamespacedAttributeBag`
170-
This implementation allows for attributes to be stored in a structured namespace.
171-
172-
.. deprecated:: 5.3
173-
174-
The ``NamespacedAttributeBag`` class is deprecated since Symfony 5.3.
175-
If you need this feature, you will have to implement the class yourself.
176-
177169
:class:`Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBagInterface`
178170
has the API
179171

@@ -242,20 +234,6 @@ So any processing of this might quickly get ugly, even adding a token to the arr
242234
$tokens['c'] = $value;
243235
$session->set('tokens', $tokens);
244236

245-
.. deprecated:: 5.3
246-
247-
The ``NamespacedAttributeBag`` class is deprecated since Symfony 5.3.
248-
If you need this feature, you will have to implement the class yourself.
249-
250-
With structured namespacing, the key can be translated to the array
251-
structure like this using a namespace character (which defaults to ``/``)::
252-
253-
// ...
254-
use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag;
255-
256-
$session = new Session(new NativeSessionStorage(), new NamespacedAttributeBag());
257-
$session->set('tokens/c', $value);
258-
259237
Flash Messages
260238
~~~~~~~~~~~~~~
261239

components/lock.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,9 @@ they can be decorated with the ``RetryTillSaveStore`` class::
123123
When the provided store does not implement the
124124
:class:`Symfony\\Component\\Lock\\BlockingStoreInterface` interface, the
125125
``Lock`` class will retry to acquire the lock in a non-blocking way until the
126-
lock is acquired.
127-
128-
.. deprecated:: 5.2
129-
130-
As of Symfony 5.2, you don't need to use the ``RetryTillSaveStore`` class
131-
anymore. The ``Lock`` class now provides the default logic to acquire locks
132-
in blocking mode when the store does not implement the
133-
``BlockingStoreInterface`` interface.
126+
lock is acquired. However, the ``Lock`` class also provides the default logic to
127+
acquire locks in blocking mode when the store does not implement the
128+
``BlockingStoreInterface`` interface.
134129

135130
Expiring Locks
136131
--------------

components/phpunit_bridge.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,6 @@ times (order matters)::
407407
}
408408
}
409409

410-
.. deprecated:: 5.1
411-
412-
Symfony versions previous to 5.1 also included a ``@expectedDeprecation``
413-
annotation to test deprecations, but it was deprecated in favor of the method.
414-
415410
Display the Full Stack Trace
416411
----------------------------
417412

components/yaml/yaml_format.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ Numbers
124124
# an octal
125125
0o14
126126
127-
.. deprecated:: 5.1
128-
129-
In YAML 1.1, octal numbers use the notation ``0...``, whereas in YAML 1.2
130-
the notation changes to ``0o...``. Symfony 5.1 added support for YAML 1.2
131-
notation and deprecated support for YAML 1.1 notation.
132-
133127
.. code-block:: yaml
134128
135129
# an hexadecimal

deployment/proxies.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ and what headers your reverse proxy uses to send information:
8181
;
8282
};
8383
84-
.. deprecated:: 5.2
85-
86-
In previous Symfony versions, the above example used ``HEADER_X_FORWARDED_ALL``
87-
to trust all "X-Forwarded-" headers, but that constant is deprecated since
88-
Symfony 5.2 in favor of the individual ``HEADER_X_FORWARDED_*`` constants.
89-
9084
.. caution::
9185

9286
Enabling the ``Request::HEADER_X_FORWARDED_HOST`` option exposes the

reference/configuration/framework.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,12 +1521,7 @@ or ``null`` might be preferred in production.
15211521
utf8
15221522
....
15231523

1524-
**type**: ``boolean`` **default**: ``false``
1525-
1526-
.. deprecated:: 5.1
1527-
1528-
Not setting this option is deprecated since Symfony 5.1. Moreover, the
1529-
default value of this option will change to ``true`` in Symfony 6.0.
1524+
**type**: ``boolean`` **default**: ``true``
15301525

15311526
When this option is set to ``true``, the regular expressions used in the
15321527
:ref:`requirements of route parameters <routing-requirements>` will be run

reference/configuration/security.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,6 @@ The ``invalidate_session`` option allows to redefine this behavior. Set this
628628
option to ``false`` in every firewall and the user will only be logged out from
629629
the current firewall and not the other ones.
630630

631-
.. _reference-security-logout-success-handler:
632-
633631
``path``
634632
~~~~~~~~
635633

@@ -647,23 +645,6 @@ The relative path (if the value starts with ``/``), or absolute URL (if it
647645
starts with ``http://`` or ``https://``) or the route name (otherwise) to
648646
redirect after logout.
649647

650-
success_handler
651-
~~~~~~~~~~~~~~~
652-
653-
.. deprecated:: 5.1
654-
655-
This option is deprecated since Symfony 5.1. Register an
656-
:doc:`event listener </event_dispatcher>` on the
657-
:class:`Symfony\\Component\\Security\\Http\\Event\\LogoutEvent`
658-
instead.
659-
660-
**type**: ``string`` **default**: ``'security.logout.success_handler'``
661-
662-
The service ID used for handling a successful logout. The service must implement
663-
:class:`Symfony\\Component\\Security\\Http\\Logout\\LogoutSuccessHandlerInterface`.
664-
665-
If it is set, the logout ``target`` option will be ignored.
666-
667648
.. _reference-security-logout-csrf:
668649

669650
csrf_parameter

reference/constraints/Length.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -129,26 +129,6 @@ and ``50``, you might add the following:
129129
Options
130130
-------
131131

132-
``allowEmptyString``
133-
~~~~~~~~~~~~~~~~~~~~
134-
135-
**type**: ``boolean`` **default**: ``false``
136-
137-
.. deprecated:: 5.2
138-
139-
The ``allowEmptyString`` option is deprecated since Symfony 5.2. If you
140-
want to allow empty strings too, combine the ``Length`` constraint with
141-
the :doc:`Blank constraint </reference/constraints/Blank>` inside the
142-
:doc:`AtLeastOneOf constraint </reference/constraints/AtLeastOneOf>`.
143-
144-
If set to ``true``, empty strings are considered valid (which is the same
145-
behavior as previous Symfony versions). The default ``false`` value considers
146-
empty strings not valid.
147-
148-
.. caution::
149-
150-
This option does not have any effect when no minimum length is given.
151-
152132
``charset``
153133
~~~~~~~~~~~
154134

reference/dic_tags.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,7 @@ the :class:`Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface` i
496496
The ``warmUp()`` method must return an array with the files and classes to
497497
preload. Files must be absolute paths and classes must be fully-qualified class
498498
names. The only restriction is that files must be stored in the cache directory.
499-
If you don't need to preload anything, return an empty array
500-
501-
.. deprecated:: 5.1
502-
503-
Not returning an array from the ``warmUp()`` method with the files to
504-
preload is deprecated since Symfony 5.1.
499+
If you don't need to preload anything, return an empty array.
505500

506501
The ``isOptional()`` method should return true if it's possible to use the
507502
application without calling this cache warmer. In Symfony, optional warmers

reference/forms/types/integer.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ is a constant on the :phpclass:`NumberFormatter` class:
8888
"nearest neighbor". If both neighbors are equidistant, round up. It rounds
8989
``2.5`` to ``3``, ``1.6`` and ``1.5`` to ``2`` and ``1.4`` to ``1``.
9090

91-
.. deprecated:: 5.1
92-
93-
In Symfony versions prior to 5.1, these constants were also defined as aliases
94-
in the :class:`Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\NumberToLocalizedStringTransformer`
95-
class, but they are now deprecated in favor of the :phpclass:`NumberFormatter` constants.
96-
9791
Overridden Options
9892
------------------
9993

0 commit comments

Comments
 (0)