Skip to content

Commit 3669fa2

Browse files
committed
minor #575 Showcase short definition syntax (ogizanagi, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Showcase short definition syntax Commits ------- f857b2f Tweaked the help note fcca1cb Showcase short definition syntax
2 parents fc74157 + f857b2f commit 3669fa2

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 the service definition only contains arguments, you can omit the
34+
# 'arguments' key and define the arguments just below the service class
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)