8000 Removed all 3.1 versionadded directives by wouterj · Pull Request #7622 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Removed all 3.1 versionadded directives #7622

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
Mar 17, 2017
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
3 changes: 0 additions & 3 deletions components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ The Cache Component
It is designed to have a low overhead and it ships with ready to use adapters
for the most common caching backends.

.. versionadded:: 3.1
The Cache component was introduced in Symfony 3.1.

.. versionadded:: 3.3
The PSR-16 "Simple Cache" implementation was introduced in Symfony 3.3.

Expand Down
3 changes: 0 additions & 3 deletions components/console/helpers/formatterhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ your own. See :doc:`/console/coloring`.
Print Truncated Messages
------------------------

.. versionadded:: 3.1
The ``truncate`` method was introduced in Symfony 3.1.

Sometimes you want to print a message truncated to an explicit character length.
This is possible with the
:method:`Symfony\\Component\\Console\\Helper\\FormatterHelper::truncate` method.
Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ You can add a table separator anywhere in the output by passing an instance of
| 80-902734-1-6 | And Then There Were None | Agatha Christie |
+---------------+--------------------------+------------------+

.. versionadded:: 3.1
The ``setColumnWidths()`` and ``setColumnWidth()`` methods were introduced
in Symfony 3.1.

By default the width of the columns is calculated automatically based on their
contents. Use the :method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidths`
method to set the column widths explicitly::
Expand Down
8 changes: 0 additions & 8 deletions components/phpunit_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ worlds.
Disabling the Deprecation Helper
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 3.1
The ability to disable the deprecation helper was introduced in the 3.1
version of this component.

Set the ``SYMFONY_DEPRECATIONS_HELPER`` environment variable to ``disabled`` to
completely disable the deprecation helper. This is useful to make use of the
rest of features provided by this component without getting errors or messages
Expand Down Expand Up @@ -257,10 +253,6 @@ And that's all!
DNS-sensitive Tests
-------------------

.. versionadded:: 3.1
The mocks for DNS related functions were introduced in the 3.1 version
of this component.

Tests that make network connections, for example to check the validity of a DNS
record, can be slow to execute and unreliable due to the conditions of the
network. For that reason, this component also provides mocks for these PHP
Expand Down
8 changes: 0 additions & 8 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ the contents of the output and
:method:`Symfony\\Component\\Process\\Process::clearErrorOutput` clears
the contents of the error output.

.. versionadded:: 3.1
Support for streaming the output of a process was introduced in
Symfony 3.1.

You can also use the :class:`Symfony\\Component\\Process\\Process` class with the
foreach construct to get the output while it is generated. By default, the loop waits
for new output before going to the next iteration::
Expand Down Expand Up @@ -181,10 +177,6 @@ in the output and its type::
Streaming to the Standard Input of a Process
--------------------------------------------

.. versionadded:: 3.1
Support for streaming the input of a process was introduced in
Symfony 3.1.

Before a process is started, you can specify its standard input using either the
:method:`Symfony\\Component\\Process\\Process::setInput` method or the 4th argument
of the constructor. The provided input can be a string, a stream resource or a
Expand Down
4 changes: 0 additions & 4 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,6 @@ There are several types of normalizers available:
This normalizer converts :phpclass:`SplFileInfo` objects into a data URI
string (``data:...``) such that files can be embedded into serialized data.

.. versionadded:: 3.1
The ``JsonSerializableNormalizer``, ``DateTimeNormalizer`` and
``DataUriNormalizer`` normalizers were added in Symfony 3.1

Encoders
--------

Expand Down
4 changes: 0 additions & 4 deletions components/yaml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,6 @@ underscores you can include or the way you group contents.
Advanced Usage: Flags
---------------------

.. versionadded:: 3.1
Flags were introduced in Symfony 3.1 and replaced the earlier boolean
arguments.

.. _objects-for-mappings:

Object Parsing and Dumping
Expand Down
3 changes: 0 additions & 3 deletions controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,6 @@ There are special classes that make certain kinds of responses easier:
JSON Helper
~~~~~~~~~~~

.. versionadded:: 3.1
The ``json()`` helper was introduced in Symfony 3.1.

To return JSON from a controller, use the ``json()`` helper method on the base controller.
This returns a special ``JsonResponse`` object that encodes the data automatically::

Expand Down
3 changes: 0 additions & 3 deletions controller/argument_value_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Extending Action Argument Resolving
===================================

.. versionadded:: 3.1
The ``ArgumentResolver`` and value resolvers were introduced in Symfony 3.1.

In the :doc:`controller guide </controller>`, you've learned that you can get the
:class:`Symfony\\Component\\HttpFoundation\\Request` object via an argument in
your controller. This argument has to be type-hinted by the ``Request`` class
Expand Down
3 changes: 0 additions & 3 deletions frontend/custom_version_strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
How to Use a Custom Version Strategy for Assets
===============================================

.. versionadded:: 3.1
Support for custom version strategies was introduced in Symfony 3.1.

Asset versioning is a technique that improves the performance of web
applications by adding a version identifier to the URL of the static assets
(CSS, JavaScript, images, etc.) When the content of the asset changes, its
Expand Down
3 changes: 0 additions & 3 deletions logging/disable_microsecond_precision.rst
10000
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
How to Disable Microseconds Precision (for a Performance Boost)
===============================================================

.. versionadded:: 2.11
The ``use_microseconds`` option was introduced in MonologBundle 2.11.

Setting the parameter ``use_microseconds`` to ``false`` forces the logger to reduce
the precision in the ``datetime`` field of the log messages from microsecond to second,
avoiding a call to the ``microtime(true)`` function and the subsequent parsing.
Expand Down
3 changes: 0 additions & 3 deletions reference/constraints/Callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ can do anything, including creating and assigning validation errors.
Configuration
-------------

.. versionadded:: 3.1
The ``$payload`` parameter was introduced in Symfony 3.1.

.. configuration-block::

.. code-block:: php-annotations
Expand Down
3 changes: 0 additions & 3 deletions reference/constraints/DateTime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ format

**type**: ``string`` **default**: ``Y-m-d H:i:s``

.. versionadded:: 3.1
The ``format`` option was introduced in Symfony 3.1.

This option allows to validate a custom date format. See
:phpmethod:`DateTime::createFromFormat` for formatting options.

Expand Down
6 changes: 0 additions & 6 deletions reference/constraints/Image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,6 @@ If this option is false, the image cannot be portrait oriented.
detectCorrupted
~~~~~~~~~~~~~~~

.. versionadded:: 3.1
The ``detectCorrupted`` option was introduced in Symfony 3.1.

**type**: ``boolean`` **default**: ``false``

If this option is true, the image contents are validated to ensure that the
Expand Down Expand Up @@ -409,9 +406,6 @@ The error message if the image is portrait oriented and you set `allowPortrait`_
corruptedMessage
~~~~~~~~~~~~~~~~

.. versionadded:: 3.1
The ``corruptedMessage`` option was introduced in Symfony 3.1.

**type**: ``string`` **default**: ``The image file is corrupted.``

The error message when the `detectCorrupted`_ option is enabled and the image
Expand Down
4 changes: 0 additions & 4 deletions reference/constraints/UniqueEntity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ The message that's displayed when this constraint fails. This message is always
mapped to the first field causing the violation, even when using multiple fields
in the constraint.

.. versionadded:: 3.1
The ability to include the invalid value into the message was introduced
in Symfony 3.1.

Messages can include the ``{{ value }}`` placeholder to display a string
representation of the invalid entity. If the entity doesn't define the
``__toString()`` method, the following generic value will be used: *"Object of
Expand Down
3 changes: 0 additions & 3 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ For details on registering your own commands in the service container, read
controller.argument_value_resolver
----------------------------------

.. versionadded:: 3.1
The ``controller.argument_value_resolver`` tag was introduced in Symfony 3.1.

**Purpose**: Register a value resolver for controller arguments such as ``Request``

Value resolvers implement the
Expand Down
0