Skip to content

[RFC] [Console] typehint input as attribute? #49522

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

Closed
94noni opened this issue Feb 24, 2023 · 5 comments
Closed

[RFC] [Console] typehint input as attribute? #49522

94noni opened this issue Feb 24, 2023 · 5 comments
Labels
Console RFC RFC = Request For Comments (proposals about features that you want to be discussed)

Comments

@94noni
Copy link
Contributor

94noni commented Feb 24, 2023

Description

Hello

RFC regarding to add more typehint on Symfony/Component/Console/Input/Input as attributes.

Can we imagine "mimicking" #49138 but for console in some way?

bin/console (cli entry point) can leverage attributes to validate/parse/transform user land inputs before command is really executed

(the same way public/index.php (web entry point) now leverage tons of new features since v6.3

Thanks!

Example

  • MapQueryString => MapInputString
  • ... try to see what usage can be backported from the "web request" context

no example/no idea of better naming and related implementation

@carsonbot carsonbot added Console RFC RFC = Request For Comments (proposals about features that you want to be discussed) labels Feb 24, 2023
@94noni
Copy link
Contributor Author

94noni commented Mar 24, 2023

Additional recent topic:

Friendly ping @chalasr
I would love to help contribute to this if you have a clear path/roadmap on the work to do
Perhaps after v6.3 is out :)

cheers!

@chalasr
Copy link
Member

chalasr commented Mar 24, 2023

Oh sure, let me reach out to you on slack probably next week. I think this can be closed meanwhile so that nobody picks it, the work has started so there's some material already :)

@94noni
Copy link
Contributor Author

94noni commented May 9, 2023

Issue description a bit completed with recent addition (blog post as reminder)

I think this can be closed meanwhile so that nobody picks it, the work has started so there's some material already :)

closing here then

thank you :)

@94noni
Copy link
Contributor Author

94noni commented Sep 26, 2023

@chalasr hello, may I ask you any news on that topics ?
regards

@chalasr
Copy link
Member

chalasr commented Sep 26, 2023

My OSS capabilities have been limited lately but I'll be back :) that work will be my primary focus for the next coming months and will hopefully target 7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Console RFC RFC = Request For Comments (proposals about features that you want to be discussed)
Projects
None yet
Development

No branches or pull requests

3 participants