Closed
Description
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
- https://symfony.com/blog/new-in-symfony-6-3-mapping-request-data-to-typed-objects
- https://symfony.com/blog/new-in-symfony-6-3-query-parameters-mapper
- (https://symfony.com/blog/new-in-symfony-6-3-targeted-value-resolvers)
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