@yceruto.bsky.socialYonel Ceruto @yceruto.bsky.social
2025-11-09 14:36 UTC
This unlocks new possibilities, your input models can now hold logic. For example, you can add a method in your input class and mark it with `#[Interact]` to ask for required args. Yes! you can finally use `$this` instead of `$input->getArgument()` and `$input->setArgument()`. #Symfony #PHP #DX
1 picture (not shown on this phone)
Quoting @yceruto.bsky.social: Symfony 7.4 brings a cleaner way to define console inputs: command arguments and options can now be mapped directly to PHP classes and enums using attributes like `#[MapInput]`, `#[Argument]`, and `#[Option]`. Type-safe, structured input f…
7 likes, 2 reposts, 0 replies
3 Next post4 More from @yceruto.bsky.socialBackBluesky home