sonata-project / SonataNewsBundle

[Abandoned] Symfony SonataNewsBundle
https://docs.sonata-project.org/projects/SonataNewsBundle
MIT License
151 stars 131 forks source link

Drop sonata intl #567

Closed core23 closed 3 years ago

core23 commented 4 years ago

Feature Request

The dependency should be dropped and symfony/intl respectively twig/intl-extra should be used instead.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

core23 commented 3 years ago

There are only two usages: https://github.com/sonata-project/SonataNewsBundle/blob/3d4df1c66b78700ada404cedfc781d9ababaff66/src/Action/MonthlyPostArchiveAction.php#L40 https://github.com/sonata-project/SonataNewsBundle/blob/3d4df1c66b78700ada404cedfc781d9ababaff66/src/Action/DailyPostArchiveAction.php#L40

This can be replaced with with a symfony polyfil

phansys commented 3 years ago

Please, note that sonata-project/intl-bundle provides more features than the replacements you are proposing. It allows to detect the timezone and its locale from the request and the authenticated user.

core23 commented 3 years ago

Closing this as this project is abandoned #766