File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed
components/console/helpers Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff 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+
5963If you don't know the number of steps in advance, just omit the steps argument
6064when creating the :class: `Symfony\\ Component\\ Console\\ Helper\\ ProgressBar `
6165instance::
Original file line number Diff line number Diff 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
129133Alternatives to base Controller Methods
130134---------------------------------------
Original file line number Diff line number Diff 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
728729Symfony Standard Edition Extensions
729730-----------------------------------
You can’t perform that action at this time.
0 commit comments