Skip to content

Commit a4f5b08

Browse files
committed
Move important information out of versionadded
1 parent 3c3615c commit a4f5b08

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
@@ -719,11 +719,12 @@ The available attributes are:
719719
* ``app.session``
720720
* ``app.environment``
721721
* ``app.debug``
722-
* ``app.security``
722+
* ``app.security`` (deprecated as of 2.6)
723723

724-
.. versionadded:: 2.6
725-
The ``app.security`` global is deprecated as of 2.6. The user is already available
726-
as ``app.user`` and ``is_granted()`` is registered as function.
724+
.. caution::
725+
726+
The ``app.security`` global is deprecated as of 2.6. The user is already
727+
available as ``app.user`` and ``is_granted()`` is registered as function.
727728

728729
Symfony Standard Edition Extensions
729730
-----------------------------------

0 commit comments

Comments
 (0)