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

reference/forms/types/options/rounding_mode.rst.inc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,3 @@ on the :phpclass:`NumberFormatter` class:
3030
* ``\NumberFormatter::ROUND_HALFUP`` Round towards the
3131
"nearest neighbor". If both neighbors are equidistant, round up. It rounds
3232
``2.5`` to ``3``, ``1.6`` and ``1.5`` to ``2`` and ``1.4`` to ``1``.
33-
34-
.. deprecated:: 5.1
35-
36-
In Symfony versions prior to 5.1, these constants were also defined as aliases
37-
in the :class:`Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\NumberToLocalizedStringTransformer`
38-
class, but they are now deprecated in favor of the :phpclass:`NumberFormatter` constants.

service_container.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -881,11 +881,6 @@ setting:
881881
;
882882
};
883883
884-
.. deprecated:: 5.1
885-
886-
As of Symfony 5.1, it is no longer possible to autowire the service
887-
container by type-hinting ``Psr\Container\ContainerInterface``.
888-
889884
.. _service-psr4-loader:
890885

891886
Importing Many Services at once with resource

session.rst

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -164,89 +164,11 @@ controllers if you type-hint an argument with
164164
}
165165
}
166166

167-
.. deprecated:: 5.3
168-
169-
The ``SessionInterface`` and ``session`` service were deprecated in
170-
Symfony 5.3. Instead, inject the ``RequestStack`` service to get the session
171-
object of the current request.
172-
173167
Stored attributes remain in the session for the remainder of that user's session.
174168
By default, session attributes are key-value pairs managed with the
175169
:class:`Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag`
176170
class.
177171

178-
.. deprecated:: 5.3
179-
180-
The ``NamespacedAttributeBag`` class is deprecated since Symfony 5.3.
181-
If you need this feature, you will have to implement the class yourself.
182-
183-
If your application needs are complex, you may prefer to use
184-
:ref:`namespaced session attributes <namespaced-attributes>` which are managed with the
185-
:class:`Symfony\\Component\\HttpFoundation\\Session\\Attribute\\NamespacedAttributeBag`
186-
class. Before using them, override the ``session_listener`` service definition to build
187-
your ``Session`` object with the default ``AttributeBag`` by the ``NamespacedAttributeBag``:
188-
189-
.. configuration-block::
190-
191-
.. code-block:: yaml
192-
193-
# config/services.yaml
194-
session.factory:
195-
autoconfigure: true
196-
class: App\Session\SessionFactory
197-
arguments:
198-
- '@request_stack'
199-
- '@session.storage.factory'
200-
- ['@session_listener', 'onSessionUsage']
201-
- '@session.namespacedattributebag'
202-
203-
session.namespacedattributebag:
204-
class: Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag
205-
206-
.. code-block:: xml
207-
208-
<!-- config/services.xml -->
209-
<?xml version="1.0" encoding="UTF-8" ?>
210-
<container xmlns="http://symfony.com/schema/dic/services"
211-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
212-
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
213-
214-
<services>
215-
<service id="session" class="Symfony\Component\HttpFoundation\Session\Session" public="true">
216-
<argument type="service" id="session.storage"/>
217-
<argument type="service" id="session.namespacedattributebag"/>
218-
<argument type="service" id="session.flash_bag"/>
219-
</service>
220-
221-
<service id="session.namespacedattributebag"
222-
class="Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag"
223-
/>
224-
</services>
225-
</container>
226-
227-
.. code-block:: php
228-
229-
// config/services.php
230-
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
231-
232-
use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag;
233-
use Symfony\Component\HttpFoundation\Session\Session;
234-
235-
return function(ContainerConfigurator $configurator) {
236-
$services = $configurator->services();
237-
238-
$services->set('session', Session::class)
239-
->public()
240-
->args([
241-
ref('session.storage'),
242-
ref('session.namespacedattributebag'),
243-
ref('session.flash_bag'),
244-
])
245-
;
246-
247-
$services->set('session.namespacedattributebag', NamespacedAttributeBag::class);
248-
};
249-
250172
.. _session-avoid-start:
251173

252174
Avoid Starting Sessions for Anonymous Users

0 commit comments

Comments
 (0)