Closed kbond closed 11 months ago
I have a requirement to use the Helper::formatDuration() from symfony/console in twig templates. I thought this bundle would be a good place for this.
Helper::formatDuration()
symfony/console
Copied much of the code from symfony/console and added translations. I'll leave to others to add translations for other locales.
{{ 0|duration }} {# < 1 sec #} {{ 1|duration }} {# 1 sec #} {{ 56|duration }} {# 56 secs #} {{ 60|duration }} {# 1 min #}
Should I update the changelog?
For the docs, we should perhaps re-jig them a bit as it says This bundle does one simple job - not anymore if this PR is merged.
Thanks Kevin!
I have a requirement to use the
Helper::formatDuration()
fromsymfony/console
in twig templates. I thought this bundle would be a good place for this.Copied much of the code from
symfony/console
and added translations. I'll leave to others to add translations for other locales.Should I update the changelog?
For the docs, we should perhaps re-jig them a bit as it says This bundle does one simple job - not anymore if this PR is merged.