Skip to content

Commit 2f903fb

Browse files
committed
minor #11620 Removed Symfony 4.* versionadded directives (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Removed Symfony 4.* versionadded directives "Master" branch will become Symfony 5.0, so we can remove all this. Commits ------- bcc55c5 Removed Symfony 4.* versionadded directives
2 parents 6bf9ef5 + bcc55c5 commit 2f903fb

Some content is hidden

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

62 files changed

+2
-429
lines changed

cache.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ Basic uses of the cache looks like this::
3030
Symfony supports the Cache Contracts, PSR-6/16 and Doctrine Cache interfaces.
3131
You can read more about these at the :doc:`component documentation </components/cache>`.
3232

33-
.. versionadded:: 4.2
34-
35-
The cache contracts were introduced in Symfony 4.2.
36-
3733
.. _cache-configuration-with-frameworkbundle:
3834

3935
Configuring Cache with FrameworkBundle
@@ -612,10 +608,6 @@ To see all available cache pools:
612608
613609
$ php bin/console cache:pool:list
614610
615-
.. versionadded:: 4.3
616-
617-
The ``cache:pool:list`` command was introduced in Symfony 4.3.
618-
619611
Clear one pool:
620612

621613
.. code-block:: terminal

components/cache/adapters/memcached_adapter.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ helper method allows creating and configuring a `Memcached`_ class instance usin
7070
'memcached:?host[localhost]&host[localhost:12345]&host[/some/memcached.sock:]=3'
7171
);
7272

73-
.. versionadded:: 4.2
74-
75-
The option to define multiple servers in a single DSN was introduced in Symfony 4.2.
76-
7773
The `Data Source Name (DSN)`_ for this adapter must use the following format:
7874

7975
.. code-block:: text

components/cache/adapters/redis_adapter.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ name of your service group::
102102
'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster'
103103
);
104104

105-
.. versionadded:: 4.2
106-
107-
The option to define multiple servers in a single DSN was introduced in Symfony 4.2.
108-
109-
.. versionadded:: 4.4
110-
111-
Redis Sentinel support was introduced in Symfony 4.4.
112-
113105
.. note::
114106

115107
See the :class:`Symfony\\Component\\Cache\\Traits\\RedisTrait` for more options

components/cache/psr6_psr16_adapters.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ this use-case::
4646
// now use this wherever you want
4747
$githubApiClient = new GitHubApiClient($psr6Cache);
4848

49-
.. versionadded:: 4.3
50-
51-
The ``Psr16Adapter`` class was introduced in Symfony 4.3.
52-
5349
Using a PSR-6 Cache Object as a PSR-16 Cache
5450
--------------------------------------------
5551

@@ -87,8 +83,4 @@ this use-case::
8783
// now use this wherever you want
8884
$githubApiClient = new GitHubApiClient($psr16Cache);
8985

90-
.. versionadded:: 4.3
91-
92-
The ``Psr16Cache`` class was introduced in Symfony 4.3.
93-
9486
.. _`PSR-16`: http://www.php-fig.org/psr/psr-16/

components/console/helpers/progressbar.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ If ``$iterable = [1, 2]``, the previous code will output the following:
118118
1/2 [==============>-------------] 50%
119119
2/2 [============================] 100%
120120
121-
.. versionadded:: 4.3
122-
123-
The ``iterate()`` method was introduced in Symfony 4.3.
124-
125121
Customizing the Progress Bar
126122
----------------------------
127123

components/console/helpers/questionhelper.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ provide a callback function to dynamically generate suggestions::
212212
$filePath = $helper->ask($input, $output, $question);
213213
}
214214

215-
.. versionadded:: 4.3
216-
217-
The ``setAutocompleterCallback()`` method was introduced in Symfony 4.3.
218-
219215
Hiding the User's Response
220216
~~~~~~~~~~~~~~~~~~~~~~~~~~
221217

components/dom_crawler.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ tree.
7777
The DomCrawler component will use it automatically when the content has
7878
an HTML5 doctype.
7979

80-
.. versionadded:: 4.3
81-
82-
The automatic support of the html5-php library was introduced in Symfony 4.3.
83-
8480
Node Filtering
8581
~~~~~~~~~~~~~~
8682

@@ -216,10 +212,6 @@ Access the value of the first node of the current selection::
216212
// avoid the exception passing an argument that text() returns when node does not exist
217213
$message = $crawler->filterXPath('//body/p')->text('Default text content');
218214

219-
.. versionadded:: 4.3
220-
221-
The default argument of ``text()`` was introduced in Symfony 4.3.
222-
223215
Access the attribute value of the first node of the current selection::
224216

225217
$class = $crawler->filterXPath('//body/p')->attr('class');
@@ -236,10 +228,6 @@ Extract attribute and/or node values from the list of nodes::
236228
Special attribute ``_text`` represents a node value, while ``_name``
237229
represents the element name (the HTML tag name).
238230

239-
.. versionadded:: 4.3
240-
241-
The special attribute ``_name`` was introduced in Symfony 4.3.
242-
243231
Call an anonymous function on each node of the list::
244232

245233
use Symfony\Component\DomCrawler\Crawler;
@@ -333,10 +321,6 @@ and :phpclass:`DOMNode` objects::
333321
// avoid the exception passing an argument that html() returns when node does not exist
334322
$html = $crawler->html('Default <strong>HTML</strong> content');
335323

336-
.. versionadded:: 4.3
337-
338-
The default argument of ``html()`` was introduced in Symfony 4.3.
339-
340324
Expression Evaluation
341325
~~~~~~~~~~~~~~~~~~~~~
342326

components/dotenv.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ You can adjust the variable defining the environment, default environment and te
104104
environments by passing them as additional arguments to ``Dotenv::loadEnv()``
105105
(see :method:`Symfony\\Component\\Dotenv\\Dotenv::loadEnv` for details).
106106

107-
.. versionadded:: 4.2
108-
109-
The ``Dotenv::loadEnv()`` method was introduced in Symfony 4.2.
110-
111107
You should never store a ``.env`` file in your code repository as it might
112108
contain sensitive information; create a ``.env.dist`` file (or multiple
113109
environment-specific ones as shown above) with sensible defaults instead.

components/finder.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@ rules to exclude files and directories from the results with the
150150
// excludes files/directories matching the .gitignore patterns
151151
$finder->ignoreVCSIgnored(true);
152152

153-
.. versionadded:: 4.3
154-
155-
The ``ignoreVCSIgnored()`` method was introduced in Symfony 4.3.
156-
157153
File Name
158154
~~~~~~~~~
159155

@@ -250,11 +246,6 @@ Multiple paths can be excluded by chaining calls or passing an array::
250246
// same as above
251247
$finder->notPath(['first/dir', 'other/dir']);
252248

253-
.. versionadded:: 4.2
254-
255-
Support for passing arrays to ``notPath()`` was introduced in Symfony
256-
4.2
257-
258249
File Size
259250
~~~~~~~~~
260251

components/http_client.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ The HttpClient Component
99
PHP stream wrappers and cURL. It provides utilities to consume APIs and
1010
supports synchronous and asynchronous operations.
1111

12-
.. versionadded:: 4.3
13-
14-
The HttpClient component was introduced in Symfony 4.3.
15-
1612
.. TODO
1713
.. tell about implementation vs abstraction
1814
.. tell there are more options

components/intl.rst

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ You can also check if a given language code is valid::
9292

9393
$isValidLanguage = Languages::exists($languageCode);
9494

95-
.. versionadded:: 4.3
96-
97-
The ``Languages`` class was introduced in Symfony 4.3.
98-
9995
The ``Scripts`` class provides access to the optional four-letter script code
10096
that can follow the language code according to the `Unicode ISO 15924 Registry`_
10197
(e.g. ``HANS`` in ``zh_HANS`` for simplified Chinese and ``HANT`` in ``zh_HANT``
@@ -125,10 +121,6 @@ You can also check if a given script code is valid::
125121

126122
$isValidScript = Scripts::exists($scriptCode);
127123

128-
.. versionadded:: 4.3
129-
130-
The ``Scripts`` class was introduced in Symfony 4.3.
131-
132124
Country Names
133125
~~~~~~~~~~~~~
134126

@@ -160,10 +152,6 @@ You can also check if a given country code is valid::
160152

161153
$isValidCountry = Countries::exists($countryCode);
162154

163-
.. versionadded:: 4.3
164-
165-
The ``Countries`` class was introduced in Symfony 4.3.
166-
167155
Locales
168156
~~~~~~~
169157

@@ -196,10 +184,6 @@ You can also check if a given locale code is valid::
196184

197185
$isValidLocale = Locales::exists($localeCode);
198186

199-
.. versionadded:: 4.3
200-
201-
The ``Locales`` class was introduced in Symfony 4.3.
202-
203187
Currencies
204188
~~~~~~~~~~
205189

@@ -240,10 +224,6 @@ You can also check if a given currency code is valid::
240224

241225
$isValidCurrency = Currencies::exists($currencyCode);
242226

243-
.. versionadded:: 4.3
244-
245-
The ``Currencies`` class was introduced in Symfony 4.3.
246-
247227
Timezones
248228
~~~~~~~~~
249229

@@ -318,10 +298,6 @@ Finally, you can also check if a given timezone ID is valid::
318298

319299
$isValidTimezone = Timezones::exists($timezoneId);
320300

321-
.. versionadded:: 4.3
322-
323-
The ``Timezones`` class was introduced in Symfony 4.3.
324-
325301
Learn more
326302
----------
327303

components/lock.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,6 @@ support blocking, and expects a TTL to avoid stalled locks::
223223
MongoDbStore
224224
~~~~~~~~~~~~
225225

226-
.. versionadded:: 4.3
227-
228-
The ``MongoDbStore`` was introduced in Symfony 4.3.
229-
230226
The MongoDbStore saves locks on a MongoDB server, it requires a
231227
``\MongoDB\Client`` connection from `mongodb/mongodb`_. This store does not
232228
support blocking and expects a TTL to avoid stalled locks::

components/options_resolver.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,6 @@ This way, the ``$value`` argument will receive the previously normalized
439439
value, otherwise you can prepend the new normalizer by passing ``true`` as
440440
third argument.
441441

442-
.. versionadded:: 4.3
443-
444-
The ``addNormalizer()`` method was introduced in Symfony 4.3.
445-
446442
Default Values that Depend on another Option
447443
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
448444

components/property_access.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ This will produce: ``He is an author``
169169
Accessing a non Existing Property Path
170170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171171

172-
.. versionadded:: 4.3
173-
174-
The ``disableExceptionOnInvalidPropertyPath()`` method was introduced in
175-
Symfony 4.3.
176-
177172
By default a :class:`Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException`
178173
is thrown if the property path passed to :method:`PropertyAccessor::getValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::getValue>`
179174
does not exist. You can change this behavior using the

components/routing.rst

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -454,56 +454,6 @@ routes with UTF-8 characters:
454454
;
455455
};
456456
457-
.. versionadded:: 4.3
458-
459-
The ``utf8`` option/method has been introduced in Symfony 4.3.
460-
Before you had to use the ``options`` setting to define this value:
461-
462-
.. configuration-block::
463-
464-
.. code-block:: php-annotations
465-
466-
route1:
467-
path: /category/{name}
468-
controller: App\Controller\DefaultController::category
469-
options: { utf8: true }
470-
471-
.. code-block:: yaml
472-
473-
route1:
474-
path: /category/{name}
475-
controller: App\Controller\DefaultController::category
476-
utf8: true
477-
478-
.. code-block:: xml
479-
480-
<?xml version="1.0" encoding="UTF-8" ?>
481-
<routes xmlns="http://symfony.com/schema/routing"
482-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
483-
xsi:schemaLocation="http://symfony.com/schema/routing
484-
https://symfony.com/schema/routing/routing-1.0.xsd">
485-
486-
<route id="route1"
487-
path="/category/{name}"
488-
controller="App\Controller\DefaultController::category">
489-
<option key="utf8">true</option>
490-
</route>
491-
</routes>
492-
493-
.. code-block:: php
494-
495-
// config/routes.php
496-
namespace Symfony\Component\Routing\Loader\Configurator;
497-
498-
use App\Controller\DefaultController;
499-
500-
return function (RoutingConfigurator $routes) {
501-
$routes->add('route1', '/category/{name}')
502-
->controller([DefaultController::class, 'category'])
503-
->options(['utf8' => true])
504-
;
505-
};
506-
507457
In this route, the ``utf8`` option set to ``true`` makes Symfony consider the
508458
``.`` requirement to match any UTF-8 characters instead of just a single
509459
byte character. This means that so the following URLs would match:

components/security/authentication.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,6 @@ the ``switch_user`` firewall listener.
318318
The ``Symfony\Component\Security\Http\Event\DeauthenticatedEvent`` event is triggered when a token has been deauthenticated
319319
because of a user change, it can help you doing some clean-up task when a logout has been triggered.
320320

321-
.. versionadded:: 4.3
322-
323-
The ``Symfony\Component\Security\Http\Event\DeauthenticatedEvent`` event was introduced in Symfony 4.3.
324-
325321
.. seealso::
326322

327323
For more information on switching users, see

components/serializer.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,6 @@ normalized data, instead of the denormalizer re-creating them. Note that
223223
arrays of objects. Those will still be replaced when present in the normalized
224224
data.
225225

226-
.. versionadded:: 4.3
227-
228-
The ``AbstractObjectNormalizer::DEEP_OBJECT_TO_POPULATE`` option was
229-
introduced in Symfony 4.3.
230-
231226
.. _component-serializer-attributes-groups:
232227

233228
Attributes Groups
@@ -664,7 +659,7 @@ When serializing, you can set a callback to format a specific object property::
664659
'createdAt' => $callback,
665660
],
666661
];
667-
662+
668663
$normalizer = new GetSetMethodNormalizer(null, null, null, null, null, $defaultContext);
669664

670665
$serializer = new Serializer([$normalizer], [$encoder]);

0 commit comments

Comments
 (0)