[Refactor] Create symfony console helper class to process and validate common Piwik console input #8844
Labels
wontfix
If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone
In Piwik commands, it is common to specify one or more sites, dates, periods, etc. Getting and processing this data takes some work which results in many commands containing similar, redundant code.
To remove this code redundancy and to better test this code outside of testing commands themselves, we can introduce a new symfony helper for Piwik specific stuff.
It could, for example, look like this:
and be used like this:
If this logic is common w/ API method input processing and/or other places, we can make the utility more generic. Though it could still implement HelperInterface...
The text was updated successfully, but these errors were encountered: