Skip to content

Commit fcca1cb

Browse files
committed
Showcase short definition syntax
1 parent a99f756 commit fcca1cb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/config/services.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,17 @@ services:
3030
arguments:
3131
$emailSender: '%app.notifications.email_sender%'
3232

33+
# When your service definition only requires arguments to be specified,
34+
# you can use a shorter syntax for these:
3335
AppBundle\Twig\AppExtension:
34-
arguments:
35-
$locales: '%app_locales%'
36+
$locales: '%app_locales%'
3637

3738
AppBundle\EventListener\CommentNotificationSubscriber:
38-
arguments:
39-
$sender: '%app.notifications.email_sender%'
39+
$sender: '%app.notifications.email_sender%'
4040

4141
AppBundle\EventListener\RedirectToPreferredLocaleSubscriber:
42-
arguments:
43-
$locales: '%app_locales%'
44-
$defaultLocale: '%locale%'
42+
$locales: '%app_locales%'
43+
$defaultLocale: '%locale%'
4544

4645
# needed for the localizeddate Twig filter
4746
Twig\Extensions\IntlExtension: ~

0 commit comments

Comments
 (0)