Skip to content

Move important information out of versionadded #5641

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
Sep 5, 2015
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
6 changes: 5 additions & 1 deletion components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ you can also set the current progress by calling the
Prior to version 2.6, the progress bar only works if your platform
supports ANSI codes; on other platforms, no output is generated.

.. versionadded:: 2.6
.. tip::

If your platform doesn't support ANSI codes, updates to the progress
bar are added as new lines. To prevent the output from being flooded,
adjust the
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`
accordingly. By default, when using a ``max``, the redraw frequency
is set to *10%* of your ``max``.

.. versionadded:: 2.6
The ``setRedrawFrequency()`` method was introduced in Symfony 2.6.

If you don't know the number of steps in advance, just omit the steps argument
when creating the :class:`Symfony\\Component\\Console\\Helper\\ProgressBar`
instance::
Expand Down
10 changes: 7 additions & 3 deletions cookbook/controller/service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ the route ``_controller`` value:
defined as a service. See the `FrameworkExtraBundle documentation`_ for
details.

.. versionadded:: 2.6
If your controller service implements the ``__invoke`` method, you can simply refer to the service id
(``app.hello_controller``).
.. tip::

If your controller implements the ``__invoke()`` method, you can simply
refer to the service id (``app.hello_controller``).

.. versionadded:: 2.6
Support for ``__invoke()`` was introduced in Symfony 2.6.

Alternatives to base Controller Methods
---------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,12 @@ The available attributes are:
* ``app.session``
* ``app.environment``
* ``app.debug``
* ``app.security``
* ``app.security`` (deprecated as of 2.6)

.. versionadded:: 2.6
The ``app.security`` global is deprecated as of 2.6. The user is already available
as ``app.user`` and ``is_granted()`` is registered as function.
.. caution::

The ``app.security`` global is deprecated as of 2.6. The user is already
available as ``app.user`` and ``is_granted()`` is registered as function.

Symfony Standard Edition Extensions
-----------------------------------
Expand Down