Skip to content

Use Symfony 5 examples #12208

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
Aug 20, 2019
Merged
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
22 changes: 11 additions & 11 deletions contributing/documentation/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ If you are documenting a brand new feature, a change or a deprecation that's
been made in Symfony, you should precede your description of the change with
the corresponding directive and a short description:

For a new feature or a behavior change use the ``.. versionadded:: 4.x``
For a new feature or a behavior change use the ``.. versionadded:: 5.x``
directive:

.. code-block:: rst

.. versionadded:: 4.2
.. versionadded:: 5.2

Named autowiring aliases have been introduced in Symfony 4.2.
... ... ... was introduced in Symfony 5.2.

If you are documenting a behavior change, it may be helpful to *briefly*
describe how the behavior has changed:
Expand All @@ -191,23 +191,23 @@ describe how the behavior has changed:

.. versionadded:: 4.2

Support for ICU MessageFormat was introduced in Symfony 4.2. Prior to this,
pluralization was managed by the ``transChoice`` method.
... ... ... was introduced in Symfony 5.2. Prior to this,
... ... ... ... ... ... ... ... .

For a deprecation use the ``.. deprecated:: 4.x`` directive:
For a deprecation use the ``.. deprecated:: 5.x`` directive:

.. code-block:: rst

.. deprecated:: 4.2
.. deprecated:: 5.2

Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.
... ... ... was deprecated in Symfony 5.2.

Whenever a new major version of Symfony is released (e.g. 5.0, 6.0, etc),
Whenever a new major version of Symfony is released (e.g. 6.0, 7.0, etc),
a new branch of the documentation is created from the ``master`` branch.
At this point, all the ``versionadded`` and ``deprecated`` tags for Symfony
versions that have a lower major version will be removed. For example, if
Symfony 5.0 were released today, 4.0 to 4.4 ``versionadded`` and ``deprecated``
tags would be removed from the new ``5.0`` branch.
Symfony 6.0 were released today, 5.0 to 5.4 ``versionadded`` and ``deprecated``
tags would be removed from the new ``6.0`` branch.

.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _Sphinx: https://www.sphinx-doc.org/
Expand Down