This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console
Fabien Potencier c202e96cd6 feature #26339 [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods (ostrolucky)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | TBA

The way ProgressBar redraw frequency works currently requires to know speed of progress beforehand, which is impossible to know in some situations, e.g. when showing progress of download, or I/O speed. Setting frequency too low relative to progress speed throttles I/O speed and makes progress bar flicker too much, setting it too high makes progress bar unresponsive. Current behaviour IMHO undermines usefulness of ProgressBar.

This is an attempt to replace this with more consistent experience, not requiring to know speed of progress.)

Commits
-------

83edac321e [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods
2019-07-08 11:29:00 +02:00
..
Command Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
CommandLoader [Console] Add a factory command loader for standalone application with lazy-loading needs 2017-07-15 10:43:17 +02:00
DependencyInjection fixed CS 2019-01-16 19:35:49 +01:00
Descriptor Merge branch '3.4' into 4.2 2019-06-05 15:22:46 +02:00
Event Merge branch '3.4' into 4.0 2018-07-26 10:51:09 +02:00
EventListener switched array() to [] 2019-01-16 10:39:14 +01:00
Exception fixed some exception previous type hints 2019-03-30 08:40:00 +01:00
Formatter [Console] Add check for Konsole/Yakuake to disable hyperlinks 2019-06-05 04:08:03 +02:00
Helper feature #26339 [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods (ostrolucky) 2019-07-08 11:29:00 +02:00
Input Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
Logger Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
Output fixed CS 2019-06-13 12:57:15 +02:00
Question [Console] allow answer to be trimmed by adding a flag 2019-06-05 07:34:14 +02:00
Resources/bin Move hiddeninput.exe to Resources/bin 2012-10-16 11:08:11 +02:00
Style [Console] Make "warning" in SymfonyStyle use orange color 2019-01-29 23:35:02 +01:00
Tester Merge branch '3.4' into 4.2 2019-04-01 09:32:59 +02:00
Tests feature #26339 [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods (ostrolucky) 2019-07-08 11:29:00 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Application.php renamed the ErrorHandler component to ErrorCatcher 2019-06-27 19:38:50 +02:00
CHANGELOG.md feature #26339 [Console] Add ProgressBar::preventRedrawFasterThan() and forceRedrawSlowerThan() methods (ostrolucky) 2019-07-08 11:29:00 +02:00
composer.json Marked several components as incompatible with EventDispatcher 5. 2019-05-30 09:25:19 +02:00
ConsoleEvents.php Merge branch '3.4' 2017-11-05 17:26:21 +01:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Terminal.php switched array() to [] 2019-01-16 10:39:14 +01:00

Console Component

The Console component eases the creation of beautiful and testable command line interfaces.

Resources

Credits

Resources/bin/hiddeninput.exe is a third party binary provided within this component. Find sources and license at https://github.com/Seldaek/hidden-input.