You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The word 'description' is long and the first attribute parameter, so I don't want to add it. But the other attributes, even if they're in the right order, I'd like to see the names as it's more self-documenting. That is, I'd like to generate
publicfunction __invoke(
SymfonyStyle$io,
#[Argument('The url of the JSON you want to fetch')]
string$url,
#[Option('force the fetch even if it is already in the cache', shortcut: 'f')]
?bool$force = null,
): int
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The word 'description' is long and the first attribute parameter, so I don't want to add it. But the other attributes, even if they're in the right order, I'd like to see the names as it's more self-documenting. That is, I'd like to generate
I'm either getting all named or nothing named, how do I only get some attributes named?
On a related note, I'm using this awesome library to generate Symfony console commands:
https://medium.com/@tacman1123/generating-symfony-7-3-console-commands-a2b4da5d670d
Beta Was this translation helpful? Give feedback.
All reactions