Skip to content

Commit

Permalink
fix: Add missing kernel.local_aware tags for definitions that impleme…
Browse files Browse the repository at this point in the history
…nt the LocaleAwareInterface (#542)

Co-authored-by: Stephan Wentz <[email protected]>
  • Loading branch information
temp and Stephan Wentz authored Aug 9, 2022
1 parent 71added commit 9bed396
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Resources/config/intl.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,21 @@

->set('sonata.intl.helper.locale', '%sonata.intl.helper.locale.class%')
->public()
->tag('kernel.locale_aware')
->args([
'%kernel.charset%',
])

->set('sonata.intl.helper.number', '%sonata.intl.helper.number.class%')
->public()
->tag('kernel.locale_aware')
->args([
'%kernel.charset%',
])

->set('sonata.intl.helper.datetime', '%sonata.intl.helper.datetime.class%')
->public()
->tag('kernel.locale_aware')
->args([
new ReferenceConfigurator('sonata.intl.timezone_detector'),
'%kernel.charset%',
Expand Down Expand Up @@ -164,6 +167,7 @@
->tag('sonata_intl.timezone_detector', [
'alias' => 'locale_aware',
])
->tag('kernel.locale_aware')
->args([
'',
]);
Expand Down

0 comments on commit 9bed396

Please sign in to comment.