Skip to content

Commit a1cf5e9

Browse files
committed
minor #5641 Move important information out of versionadded (WouterJ)
This PR was merged into the 2.7 branch. Discussion ---------- Move important information out of versionadded Unfortunately, 2.6 is closed so this has to be merged into the 2.7 branch. | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6+ | Fixed tickets | - Commits ------- a4f5b08 Move important information out of versionadded
2 parents 0340e1f + a4f5b08 commit a1cf5e9

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

components/console/helpers/progressbar.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,18 @@ you can also set the current progress by calling the
4848
Prior to version 2.6, the progress bar only works if your platform
4949
supports ANSI codes; on other platforms, no output is generated.
5050

51-
.. versionadded:: 2.6
51+
.. tip::
52+
5253
If your platform doesn't support ANSI codes, updates to the progress
5354
bar are added as new lines. To prevent the output from being flooded,
5455
adjust the
5556
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`
5657
accordingly. By default, when using a ``max``, the redraw frequency
5758
is set to *10%* of your ``max``.
5859

60+
.. versionadded:: 2.6
61+
The ``setRedrawFrequency()`` method was introduced in Symfony 2.6.
62+
5963
If you don't know the number of steps in advance, just omit the steps argument
6064
when creating the :class:`Symfony\\Component\\Console\\Helper\\ProgressBar`
6165
instance::

cookbook/controller/service.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,13 @@ the route ``_controller`` value:
122122
defined as a service. See the `FrameworkExtraBundle documentation`_ for
123123
details.
124124

125-
.. versionadded:: 2.6
126-
If your controller service implements the ``__invoke`` method, you can simply refer to the service id
127-
(``app.hello_controller``).
125+
.. tip::
126+
127+
If your controller implements the ``__invoke()`` method, you can simply
128+
refer to the service id (``app.hello_controller``).
129+
130+
.. versionadded:: 2.6
131+
Support for ``__invoke()`` was introduced in Symfony 2.6.
128132

129133
Alternatives to base Controller Methods
130134
---------------------------------------

reference/twig_reference.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,12 @@ The available attributes are:
724724
* ``app.session``
725725
* ``app.environment``
726726
* ``app.debug``
727-
* ``app.security``
727+
* ``app.security`` (deprecated as of 2.6)
728728

729-
.. versionadded:: 2.6
730-
The ``app.security`` global is deprecated as of 2.6. The user is already available
731-
as ``app.user`` and ``is_granted()`` is registered as function.
729+
.. caution::
730+
731+
The ``app.security`` global is deprecated as of 2.6. The user is already
732+
available as ``app.user`` and ``is_granted()`` is registered as function.
732733

733734
Symfony Standard Edition Extensions
734735
-----------------------------------

0 commit comments

Comments
 (0)