Skip to content

Commit

Permalink
minor #575 Showcase short definition syntax (ogizanagi, javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Showcase short definition syntax

Commits
-------

f857b2f Tweaked the help note
fcca1cb Showcase short definition syntax
  • Loading branch information
javiereguiluz committed May 31, 2017
2 parents fc74157 + f857b2f commit 3669fa2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/config/services.yml
Expand Up @@ -30,18 +30,17 @@ services:
arguments:
$emailSender: '%app.notifications.email_sender%'

# when the service definition only contains arguments, you can omit the
# 'arguments' key and define the arguments just below the service class
AppBundle\Twig\AppExtension:
arguments:
$locales: '%app_locales%'
$locales: '%app_locales%'

AppBundle\EventListener\CommentNotificationSubscriber:
arguments:
$sender: '%app.notifications.email_sender%'
$sender: '%app.notifications.email_sender%'

AppBundle\EventListener\RedirectToPreferredLocaleSubscriber:
arguments:
$locales: '%app_locales%'
$defaultLocale: '%locale%'
$locales: '%app_locales%'
$defaultLocale: '%locale%'

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

0 comments on commit 3669fa2

Please sign in to comment.