Skip to content

Removed Symfony 4.* versionadded directives #11620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ Basic uses of the cache looks like this::
Symfony supports the Cache Contracts, PSR-6/16 and Doctrine Cache interfaces.
You can read more about these at the :doc:`component documentation </components/cache>`.

.. versionadded:: 4.2

The cache contracts were introduced in Symfony 4.2.

.. _cache-configuration-with-frameworkbundle:

Configuring Cache with FrameworkBundle
Expand Down Expand Up @@ -612,10 +608,6 @@ To see all available cache pools:

$ php bin/console cache:pool:list

.. versionadded:: 4.3

The ``cache:pool:list`` command was introduced in Symfony 4.3.

Clear one pool:

.. code-block:: terminal
Expand Down
4 changes: 0 additions & 4 deletions components/cache/adapters/memcached_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ helper method allows creating and configuring a `Memcached`_ class instance usin
'memcached:?host[localhost]&host[localhost:12345]&host[/some/memcached.sock:]=3'
);

.. versionadded:: 4.2

The option to define multiple servers in a single DSN was introduced in Symfony 4.2.

The `Data Source Name (DSN)`_ for this adapter must use the following format:

.. code-block:: text
Expand Down
8 changes: 0 additions & 8 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,6 @@ name of your service group::
'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster'
);

.. versionadded:: 4.2

The option to define multiple servers in a single DSN was introduced in Symfony 4.2.

.. versionadded:: 4.4

Redis Sentinel support was introduced in Symfony 4.4.

.. note::

See the :class:`Symfony\\Component\\Cache\\Traits\\RedisTrait` for more options
Expand Down
8 changes: 0 additions & 8 deletions components/cache/psr6_psr16_adapters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ this use-case::
// now use this wherever you want
$githubApiClient = new GitHubApiClient($psr6Cache);

.. versionadded:: 4.3

The ``Psr16Adapter`` class was introduced in Symfony 4.3.

Using a PSR-6 Cache Object as a PSR-16 Cache
--------------------------------------------

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

.. versionadded:: 4.3

The ``Psr16Cache`` class was introduced in Symfony 4.3.

.. _`PSR-16`: http://www.php-fig.org/psr/psr-16/
4 changes: 0 additions & 4 deletions components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ If ``$iterable = [1, 2]``, the previous code will output the following:
1/2 [==============>-------------] 50%
2/2 [============================] 100%

.. versionadded:: 4.3

The ``iterate()`` method was introduced in Symfony 4.3.

Customizing the Progress Bar
----------------------------

Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ provide a callback function to dynamically generate suggestions::
$filePath = $helper->ask($input, $output, $question);
}

.. versionadded:: 4.3

The ``setAutocompleterCallback()`` method was introduced in Symfony 4.3.

Hiding the User's Response
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
16 changes: 0 additions & 16 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ tree.
The DomCrawler component will use it automatically when the content has
an HTML5 doctype.

.. versionadded:: 4.3

The automatic support of the html5-php library was introduced in Symfony 4.3.

Node Filtering
~~~~~~~~~~~~~~

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

.. versionadded:: 4.3

The default argument of ``text()`` was introduced in Symfony 4.3.

Access the attribute value of the first node of the current selection::

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

.. versionadded:: 4.3

The special attribute ``_name`` was introduced in Symfony 4.3.

Call an anonymous function on each node of the list::

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

.. versionadded:: 4.3

The default argument of ``html()`` was introduced in Symfony 4.3.

Expression Evaluation
~~~~~~~~~~~~~~~~~~~~~

Expand Down
4 changes: 0 additions & 4 deletions components/dotenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ You can adjust the variable defining the environment, default environment and te
environments by passing them as additional arguments to ``Dotenv::loadEnv()``
(see :method:`Symfony\\Component\\Dotenv\\Dotenv::loadEnv` for details).

.. versionadded:: 4.2

The ``Dotenv::loadEnv()`` method was introduced in Symfony 4.2.

You should never store a ``.env`` file in your code repository as it might
contain sensitive information; create a ``.env.dist`` file (or multiple
environment-specific ones as shown above) with sensible defaults instead.
Expand Down
9 changes: 0 additions & 9 deletions components/finder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ rules to exclude files and directories from the results with the
// excludes files/directories matching the .gitignore patterns
$finder->ignoreVCSIgnored(true);

.. versionadded:: 4.3

The ``ignoreVCSIgnored()`` method was introduced in Symfony 4.3.

File Name
~~~~~~~~~

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

.. versionadded:: 4.2

Support for passing arrays to ``notPath()`` was introduced in Symfony
4.2

File Size
~~~~~~~~~

Expand Down
4 changes: 0 additions & 4 deletions components/http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ The HttpClient Component
The HttpClient component is a low-level HTTP client with support for both
PHP stream wrappers and cURL. It also provides utilities to consume APIs.

.. versionadded:: 4.3

The HttpClient component was introduced in Symfony 4.3.

Installation
------------

Expand Down
24 changes: 0 additions & 24 deletions components/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ You can also check if a given language code is valid::

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

.. versionadded:: 4.3

The ``Languages`` class was introduced in Symfony 4.3.

The ``Scripts`` class provides access to the optional four-letter script code
that can follow the language code according to the `Unicode ISO 15924 Registry`_
(e.g. ``HANS`` in ``zh_HANS`` for simplified Chinese and ``HANT`` in ``zh_HANT``
Expand Down Expand Up @@ -125,10 +121,6 @@ You can also check if a given script code is valid::

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

.. versionadded:: 4.3

The ``Scripts`` class was introduced in Symfony 4.3.

Country Names
~~~~~~~~~~~~~

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

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

.. versionadded:: 4.3

The ``Countries`` class was introduced in Symfony 4.3.

Locales
~~~~~~~

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

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

.. versionadded:: 4.3

The ``Locales`` class was introduced in Symfony 4.3.

Currencies
~~~~~~~~~~

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

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

.. versionadded:: 4.3

The ``Currencies`` class was introduced in Symfony 4.3.

Timezones
~~~~~~~~~

Expand Down Expand Up @@ -273,10 +253,6 @@ You can also check if a given timezone ID is valid::

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

.. versionadded:: 4.3

The ``Timezones`` class was introduced in Symfony 4.3.

Learn more
----------

Expand Down
4 changes: 0 additions & 4 deletions components/lock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,6 @@ support blocking, and expects a TTL to avoid stalled locks::
MongoDbStore
~~~~~~~~~~~~

.. versionadded:: 4.3

The ``MongoDbStore`` was introduced in Symfony 4.3.

The MongoDbStore saves locks on a MongoDB server, it requires a
``\MongoDB\Client`` connection from `mongodb/mongodb`_. This store does not
support blocking and expects a TTL to avoid stalled locks::
Expand Down
4 changes: 0 additions & 4 deletions components/options_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,6 @@ This way, the ``$value`` argument will receive the previously normalized
value, otherwise you can prepend the new normalizer by passing ``true`` as
third argument.

.. versionadded:: 4.3

The ``addNormalizer()`` method was introduced in Symfony 4.3.

Default Values that Depend on another Option
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
5 changes: 0 additions & 5 deletions components/property_access.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ This will produce: ``He is an author``
Accessing a non Existing Property Path
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 4.3

The ``disableExceptionOnInvalidPropertyPath()`` method was introduced in
Symfony 4.3.

By default a :class:`Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException`
is thrown if the property path passed to :method:`PropertyAccessor::getValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::getValue>`
does not exist. You can change this behavior using the
Expand Down
50 changes: 0 additions & 50 deletions components/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -454,56 +454,6 @@ routes with UTF-8 characters:
;
};

.. versionadded:: 4.3

The ``utf8`` option/method has been introduced in Symfony 4.3.
Before you had to use the ``options`` setting to define this value:

.. configuration-block::

.. code-block:: php-annotations

route1:
path: /category/{name}
controller: App\Controller\DefaultController::category
options: { utf8: true }

.. code-block:: yaml

route1:
path: /category/{name}
controller: App\Controller\DefaultController::category
utf8: true

.. code-block:: xml

<?xml version="1.0" encoding="UTF-8" ?>
<routes xmlns="http://symfony.com/schema/routing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">

<route id="route1"
path="/category/{name}"
controller="App\Controller\DefaultController::category">
<option key="utf8">true</option>
</route>
</routes>

.. code-block:: php

// config/routes.php
namespace Symfony\Component\Routing\Loader\Configurator;

use App\Controller\DefaultController;

return function (RoutingConfigurator $routes) {
$routes->add('route1', '/category/{name}')
->controller([DefaultController::class, 'category'])
->options(['utf8' => true])
;
};

In this route, the ``utf8`` option set to ``true`` makes Symfony consider the
``.`` requirement to match any UTF-8 characters instead of just a single
byte character. This means that so the following URLs would match:
Expand Down
4 changes: 0 additions & 4 deletions components/security/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,6 @@ the ``switch_user`` firewall listener.
The ``Symfony\Component\Security\Http\Event\DeauthenticatedEvent`` event is triggered when a token has been deauthenticated
because of a user change, it can help you doing some clean-up task when a logout has been triggered.

.. versionadded:: 4.3

The ``Symfony\Component\Security\Http\Event\DeauthenticatedEvent`` event was introduced in Symfony 4.3.

.. seealso::

For more information on switching users, see
Expand Down
7 changes: 1 addition & 6 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,6 @@ normalized data, instead of the denormalizer re-creating them. Note that
arrays of objects. Those will still be replaced when present in the normalized
data.

.. versionadded:: 4.3

The ``AbstractObjectNormalizer::DEEP_OBJECT_TO_POPULATE`` option was
introduced in Symfony 4.3.

.. _component-serializer-attributes-groups:

Attributes Groups
Expand Down Expand Up @@ -664,7 +659,7 @@ When serializing, you can set a callback to format a specific object property::
'createdAt' => $callback,
],
];

$normalizer = new GetSetMethodNormalizer(null, null, null, null, null, $defaultContext);

$serializer = new Serializer([$normalizer], [$encoder]);
Expand Down
Loading