Skip to content

Commit 24bdbe4

Browse files
committed
minor #21072 Remove 7.x versionadded directives (alamirault)
This PR was merged into the 8.0 branch. Discussion ---------- Remove 7.x versionadded directives More than 275 new features in 7.x cycle ! Commits ------- 3a2bb33 Remove 7.x versionadded directives
2 parents 985abbb + 3a2bb33 commit 24bdbe4

File tree

122 files changed

+18
-1206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+18
-1206
lines changed

.doctor-rst.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ rules:
7575
yaml_instead_of_yml_suffix: ~
7676

7777
versionadded_directive_major_version:
78-
major_version: 7
78+
major_version: 8
7979

8080
versionadded_directive_min_version:
81-
min_version: '7.0'
81+
min_version: '8.0'
8282

8383
deprecated_directive_major_version:
8484
major_version: 7

bundles/prepend_extension.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,6 @@ method::
181181

182182
The ``prependExtension()`` method, like ``prepend()``, is called only at compile time.
183183

184-
.. versionadded:: 7.1
185-
186-
Starting from Symfony 7.1, calling the :method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::import`
187-
method inside ``prependExtension()`` will prepend the given configuration.
188-
In previous Symfony versions, this method appended the configuration.
189-
190184
Alternatively, you can use the ``prepend`` parameter of the
191185
:method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::extension`
192186
method::
@@ -209,12 +203,6 @@ method::
209203
}
210204
}
211205

212-
.. versionadded:: 7.1
213-
214-
The ``prepend`` parameter of the
215-
:method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::extension`
216-
method was added in Symfony 7.1.
217-
218206
More than one Bundle using PrependExtensionInterface
219207
----------------------------------------------------
220208

cache.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ Some of these adapters could be configured via shortcuts.
177177
;
178178
};
179179
180-
.. versionadded:: 7.1
181-
182-
Using a DSN as the provider for the PDO adapter was introduced in Symfony 7.1.
183-
184180
.. _cache-create-pools:
185181

186182
Creating Custom (Namespaced) Pools

components/cache.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ generate and return the value::
8787
Creating Sub-Namespaces
8888
-----------------------
8989

90-
.. versionadded:: 7.3
91-
92-
Cache sub-namespaces were introduced in Symfony 7.3.
93-
9490
Sometimes you need to create context-dependent variations of data that should be
9591
cached. For example, the data used to render a dashboard page may be expensive
9692
to generate and unique per user, so you can't cache the same data for everyone.
@@ -286,12 +282,6 @@ function from the `Igbinary extension`_::
286282

287283
There are other *marshallers* that can encrypt or compress the data before storing it.
288284

289-
.. versionadded:: 7.2
290-
291-
In Symfony versions prior to 7.2, the ``igbinary_serialize()`` function was
292-
used by default when the Igbinary extension was installed. Starting from
293-
Symfony 7.2, you have to enable Igbinary support explicitly.
294-
295285
Advanced Usage
296286
--------------
297287

components/cache/adapters/array_cache_adapter.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,3 @@ method::
3131
// lifetimes in tests)
3232
$clock = null,
3333
);
34-
35-
.. versionadded:: 7.2
36-
37-
The optional ``$clock`` argument was introduced in Symfony 7.2.

components/cache/adapters/redis_adapter.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ as the second and third parameters::
4848
?MarshallerInterface $marshaller = null
4949
);
5050

51-
.. versionadded:: 7.3
52-
53-
Support for ``Relay\Cluster`` was introduced in Symfony 7.3.
54-
5551
Configure the Connection
5652
------------------------
5753

@@ -66,11 +62,6 @@ helper method allows creating and configuring the Redis client class instance us
6662
'redis://localhost'
6763
);
6864

69-
.. versionadded:: 7.3
70-
71-
Starting in Symfony 7.3, when using Valkey servers you can use the
72-
``valkey[s]:`` scheme instead of the ``redis[s]:`` one in your DSNs.
73-
7465
The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a
7566
password and a database index. To enable TLS for connections, the scheme ``redis`` must be
7667
replaced by ``rediss`` (the second ``s`` means "secure").
@@ -249,15 +240,6 @@ Available Options
249240
],
250241
];
251242

252-
.. versionadded:: 7.1
253-
254-
The option ``sentinel_master`` as an alias for ``redis_sentinel`` was introduced
255-
in Symfony 7.1.
256-
257-
.. versionadded:: 7.3
258-
259-
The ``relay_cluster_context`` option was introduced in Symfony 7.3.
260-
261243
.. note::
262244

263245
When using the `Predis`_ library some additional Predis-specific options are available.

components/clock.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ timestamps::
240240
// (for high precision sub-second datetimes) are also supported
241241
$dateOfFirstMoonLanding = DatePoint::createFromTimestamp(-14182940);
242242

243-
.. versionadded:: 7.1
244-
245-
The ``createFromTimestamp()`` method was introduced in Symfony 7.1.
246-
247243
.. note::
248244

249245
In addition ``DatePoint`` offers stricter return types and provides consistent
@@ -261,12 +257,6 @@ timestamps::
261257
This feature polyfills PHP 8.4's behavior on the topic, as microseconds manipulation
262258
is not available in previous versions of PHP.
263259

264-
.. versionadded:: 7.1
265-
266-
The :method:`Symfony\\Component\\Clock\\DatePoint::setMicrosecond` and
267-
:method:`Symfony\\Component\\Clock\\DatePoint::getMicrosecond` methods were
268-
introduced in Symfony 7.1.
269-
270260
Storing DatePoints in the Database
271261
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
272262

@@ -293,10 +283,6 @@ If you :doc:`use Doctrine </doctrine>` to work with databases, consider using th
293283
// ...
294284
}
295285

296-
.. versionadded:: 7.3
297-
298-
The ``DatePointType`` was introduced in Symfony 7.3.
299-
300286
.. _clock_writing-tests:
301287

302288
Writing Time-Sensitive Tests

components/config/caching.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,3 @@ You can explicitly define the absolute path to the meta file::
6565

6666
// the third optional argument indicates the absolute path to the meta file
6767
$userMatcherCache = new ConfigCache($cachePath, true, '/my/absolute/path/to/cache.meta');
68-
69-
.. versionadded:: 7.1
70-
71-
The argument to customize the meta file path was introduced in Symfony 7.1.

components/config/definition.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ reflect the real structure of the configuration values::
9292
->end()
9393
;
9494

95-
.. versionadded:: 7.2
96-
97-
The ``stringNode()`` method was introduced in Symfony 7.2.
98-
9995
The root node itself is an array node, and has children, like the boolean
10096
node ``auto_connect`` and the scalar node ``default_connection``. In general:
10197
after defining a node, a call to ``end()`` takes you one step up in the
@@ -120,10 +116,6 @@ node definition. Node types are available for:
120116
and are created with ``node($name, $type)`` or their associated shortcut
121117
``xxxxNode($name)`` method.
122118

123-
.. versionadded:: 7.2
124-
125-
Support for the ``string`` type was introduced in Symfony 7.2.
126-
127119
Numeric Node Constraints
128120
~~~~~~~~~~~~~~~~~~~~~~~~
129121

@@ -201,10 +193,6 @@ the cases of the enum::
201193
When using a backed enum, the values provided to the node will be cast
202194
to one of the enum cases if possible.
203195

204-
.. versionadded:: 7.3
205-
206-
The ``enumClass()`` method was introduced in Symfony 7.3.
207-
208196
Array Nodes
209197
~~~~~~~~~~~
210198

@@ -566,10 +554,6 @@ A few placeholders are available to customize the URL:
566554
The placeholders will be replaced when printing the configuration tree with the
567555
``config:dump-reference`` command.
568556

569-
.. versionadded:: 7.3
570-
571-
The ``docUrl()`` method was introduced in Symfony 7.3.
572-
573557
Optional Sections
574558
-----------------
575559

@@ -877,10 +861,6 @@ A validation rule also requires a "then" part:
877861
Usually, "then" is a closure. Its return value will be used as a new value
878862
for the node, instead of the node's original value.
879863

880-
.. versionadded:: 7.3
881-
882-
The ``ifFalse()`` method was introduced in Symfony 7.3.
883-
884864
Configuring the Node Path Separator
885865
-----------------------------------
886866

components/console/helpers/formatterhelper.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ precision (default ``1``) of the result::
136136
Helper::formatTime(172799, 4); // 1 d, 23 h, 59 min, 59 s
137137
Helper::formatTime(172799.056, 5); // 1 d, 23 h, 59 min, 59 s, 56 ms
138138

139-
.. versionadded:: 7.3
140-
141-
Support for formatting up to milliseconds was introduced in Symfony 7.3.
142-
143139
Formatting Memory
144140
-----------------
145141

components/console/helpers/progressindicator.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Once the progress finishes, it displays a special finished indicator (which defa
103103
to ✔). You can replace it with your own::
104104

105105
$progressIndicator = new ProgressIndicator($output, finishedIndicatorValue: '🎉');
106-
106+
107107
try {
108108
/* do something */
109109
$progressIndicator->finish('Finished');
@@ -121,11 +121,6 @@ The progress indicator will now look like this:
121121
- Processing...
122122
🎉 Finished
123123
124-
.. versionadded:: 7.2
125-
126-
The ``finishedIndicator`` parameter for the constructor was introduced in Symfony 7.2.
127-
The ``finishedIndicator`` parameter for method ``finish()`` was introduced in Symfony 7.2.
128-
129124
Customize Placeholders
130125
~~~~~~~~~~~~~~~~~~~~~~
131126

components/console/helpers/table.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,6 @@ This outputs:
289289
| 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
290290
| 80-902734-1-6 | And Then There Were None | Agatha Christie |
291291
292-
.. versionadded:: 7.3
293-
294-
The ``markdown`` style was introduced in Symfony 7.3.
295-
296292
Making a Custom Table Style
297293
~~~~~~~~~~~~~~~~~~~~~~~~~~~
298294

components/console/helpers/tree.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ The Tree Helper allows you to build and display tree structures in the console.
55
It's commonly used to render directory hierarchies, but you can also use it to render
66
any tree-like content, such us organizational charts, product category trees, taxonomies, etc.
77

8-
.. versionadded:: 7.3
9-
10-
The ``TreeHelper`` class was introduced in Symfony 7.3.
11-
128
Rendering a Tree
139
----------------
1410

components/console/usage.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ You can suppress output with:
7272
$ php application.php list --quiet
7373
$ php application.php list -q
7474
75-
.. versionadded:: 7.2
76-
77-
The ``--silent`` option was introduced in Symfony 7.2.
78-
7975
You can get more verbose messages (if this is supported for a command)
8076
with:
8177

components/css_selector.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ Pseudo-classes are partially supported:
9494
``li:first-of-type``) but not with the ``*`` selector).
9595
* Supported: ``*:only-of-type``, ``*:scope``, ``*:is`` and ``*:where``.
9696

97-
.. versionadded:: 7.1
98-
99-
The support for ``*:is`` and ``*:where`` was introduced in Symfony 7.1.
100-
10197
Learn more
10298
----------
10399

components/expression_language.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ This is how you can use these flags::
128128
// does not throw a SyntaxError because the unknown variables and functions are ignored
129129
$expressionLanguage->lint('unknown_var + unknown_function()', [], Parser::IGNORE_UNKNOWN_VARIABLES | Parser::IGNORE_UNKNOWN_FUNCTIONS);
130130

131-
.. versionadded:: 7.1
132-
133-
The support for flags in the ``parse()`` and ``lint()`` methods
134-
was introduced in Symfony 7.1.
135-
136131
Passing in Variables
137132
--------------------
138133

components/filesystem.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,6 @@ creates them before appending the contents.
316316
``readFile``
317317
~~~~~~~~~~~~
318318

319-
.. versionadded:: 7.1
320-
321-
The ``readFile()`` method was introduced in Symfony 7.1.
322-
323319
:method:`Symfony\\Component\\Filesystem\\Filesystem::readFile` returns all the
324320
contents of a file as a string. Unlike the :phpfunction:`file_get_contents` function
325321
from PHP, it throws an exception when the given file path is not readable and

components/form.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ The following snippet adds CSRF protection to the form factory::
134134
->addExtension(new CsrfExtension($csrfManager))
135135
->getFormFactory();
136136

137-
.. versionadded:: 7.2
138-
139-
Support for passing requests to the constructor of the ``RequestStack``
140-
class was introduced in Symfony 7.2.
141-
142137
Internally, this extension will automatically add a hidden field to every
143138
form (called ``_token`` by default) whose value is automatically generated by
144139
the CSRF generator and validated when binding the form.

components/http_foundation.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,6 @@ anonymized depending on the IP address format::
376376
$anonymousIpv6 = IpUtils::anonymize($ipv6, 3, 10);
377377
// $anonymousIpv6 = '2a01:198:603::'
378378

379-
.. versionadded:: 7.2
380-
381-
The ``v4Bytes`` and ``v6Bytes`` parameters of the ``anonymize()`` method
382-
were introduced in Symfony 7.2.
383-
384379
Check If an IP Belongs to a CIDR Subnet
385380
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
386381

@@ -459,11 +454,6 @@ You can use them individually or combine them using the
459454
// ...
460455
}
461456

462-
.. versionadded:: 7.1
463-
464-
The ``HeaderRequestMatcher`` and ``QueryParameterRequestMatcher`` were
465-
introduced in Symfony 7.1.
466-
467457
Accessing other Data
468458
~~~~~~~~~~~~~~~~~~~~
469459

@@ -721,10 +711,6 @@ a PHP callable::
721711
// disables FastCGI buffering in nginx only for this response
722712
$response->headers->set('X-Accel-Buffering', 'no');
723713

724-
.. versionadded:: 7.3
725-
726-
Support for using string iterables was introduced in Symfony 7.3.
727-
728714
Streaming a JSON Response
729715
~~~~~~~~~~~~~~~~~~~~~~~~~
730716

@@ -906,11 +892,6 @@ and that will be automatically deleted after the response is sent::
906892

907893
$response = new BinaryFileResponse($file);
908894

909-
.. versionadded:: 7.1
910-
911-
The support for ``\SplTempFileObject`` in ``BinaryFileResponse``
912-
was introduced in Symfony 7.1.
913-
914895
If the size of the served file is unknown (e.g. because it's being generated on the fly,
915896
or because a PHP stream filter is registered on it, etc.), you can pass a ``Stream``
916897
instance to ``BinaryFileResponse``. This will disable ``Range`` and ``Content-Length``

components/http_kernel.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,6 @@ The :class:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent` exposes the
525525
method, which you can use to determine if the kernel is currently terminating
526526
at the moment the exception was thrown.
527527

528-
.. versionadded:: 7.1
529-
530-
The
531-
:method:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent::isKernelTerminating`
532-
method was introduced in Symfony 7.1.
533-
534528
.. note::
535529

536530
When setting a response for the ``kernel.exception`` event, the propagation

0 commit comments

Comments
 (0)