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
48
48
Prior to version 2.6, the progress bar only works if your platform
49
49
supports ANSI codes; on other platforms, no output is generated.
50
50
51
- .. versionadded :: 2.6
51
+ .. tip ::
52
+
52
53
If your platform doesn't support ANSI codes, updates to the progress
53
54
bar are added as new lines. To prevent the output from being flooded,
54
55
adjust the
55
56
:method: `Symfony\\ Component\\ Console\\ Helper\\ ProgressBar::setRedrawFrequency `
56
57
accordingly. By default, when using a ``max ``, the redraw frequency
57
58
is set to *10% * of your ``max ``.
58
59
60
+ .. versionadded :: 2.6
61
+ The ``setRedrawFrequency() `` method was introduced in Symfony 2.6.
62
+
59
63
If you don't know the number of steps in advance, just omit the steps argument
60
64
when creating the :class: `Symfony\\ Component\\ Console\\ Helper\\ ProgressBar `
61
65
instance::
Original file line number Diff line number Diff line change @@ -122,9 +122,13 @@ the route ``_controller`` value:
122
122
defined as a service. See the `FrameworkExtraBundle documentation `_ for
123
123
details.
124
124
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.
128
132
129
133
Alternatives to base Controller Methods
130
134
---------------------------------------
Original file line number Diff line number Diff line change @@ -719,11 +719,12 @@ The available attributes are:
719
719
* ``app.session ``
720
720
* ``app.environment ``
721
721
* ``app.debug ``
722
- * ``app.security ``
722
+ * ``app.security `` (deprecated as of 2.6)
723
723
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.
727
728
728
729
Symfony Standard Edition Extensions
729
730
-----------------------------------
You can’t perform that action at this time.
0 commit comments