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

0 commit comments

Comments
 (0)