Skip to content

Commit

Permalink
Update composer.json and fix parameter usage in services.yaml (#19)
Browse files Browse the repository at this point in the history
* Add type entry to composer.json, so that bundle is correctly enabled by Symfony on install

* Use kernel.default_locale for Translator, since it's used already in the assign_locale listener
  • Loading branch information
luca-nardelli authored Feb 18, 2020
1 parent f1b2bb2 commit 8666a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "locastic/api-platform-translation-bundle",
"description": "Translation bundle for Api platform based on Sylius translation",
"license": "MIT",
"type": "symfony-bundle",
"authors": [
{
"name": "Paula",
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
arguments:
- '@translator'
- '@request_stack'
- '%locale%'
- '%kernel.default_locale%'

locastic_api_platform_translation.listener.assign_locale:
class: Locastic\ApiPlatformTranslationBundle\EventListener\AssignLocaleListener
Expand Down

0 comments on commit 8666a41

Please sign in to comment.