Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Add placeholder formatters per ProgressBar instance #48206

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
Dec 9, 2022

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Nov 12, 2022

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #34929 #47898
License MIT
Doc PR symfony/symfony-docs#...

The ProgressBar class abuse of static properties to define formats and callables for placeholders. While it is possible to set the format pattern directly without using the statically defined formats, the placeholder formatters have to be defined globally which add limitations and produce unintended side effects.

Example on this command class: https://github.com/ostrolucky/stdinho/blob/76a54db4ff379fe428acc12cbe66d319a289eb3b/src/ProgressBar.php

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.2" but it seems your PR description refers to branch "6.3".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@GromNaN GromNaN modified the milestones: 6.2, 6.3 Nov 12, 2022
@carsonbot
Copy link

Hey!

I think @yivi has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@GromNaN GromNaN force-pushed the progressbar-placeholder branch from 92a9f2c to e7dc316 Compare November 26, 2022 20:53
@fabpot fabpot force-pushed the progressbar-placeholder branch from e7dc316 to c5fdfbc Compare December 9, 2022 07:46
@fabpot
Copy link
Member

fabpot commented Dec 9, 2022

Thank you @GromNaN.

@fabpot fabpot merged commit 030514f into symfony:6.3 Dec 9, 2022
@GromNaN GromNaN deleted the progressbar-placeholder branch December 9, 2022 18:17
@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProgressBar formatters per progressbar
4 participants