Created
September 30, 2018 21:11
-
-
Save Stoakes/2f67278c5e529acdf5512d348e487f17 to your computer and use it in GitHub Desktop.
Bug for services key in messenger.yaml ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Doesn't work with that | |
framework: | |
messenger: | |
transports: | |
amqp: '%env(MESSENGER_TRANSPORT_DSN)%' | |
routing: | |
'*': amqp | |
services: | |
App\MessageHandler\WithDelaySerializer: | |
decorates: 'messenger.transport.serializer' | |
arguments: ['@App\MessageHandler\WithDelaySerializer.inner'] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Works with that | |
parameters: | |
locale: 'en' | |
services: | |
_defaults: | |
autowire: true # Automatically injects dependencies in your services. | |
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. | |
public: false # Allows optimizing the container by removing unused services; this also means | |
App\: | |
resource: '../src/*' | |
exclude: '../src/{Entity,Migrations,Tests,DataFixtures/data}' | |
App\Controller\: | |
resource: '../src/Controller' | |
tags: ['controller.service_arguments'] | |
App\MessageHandler\WithDelaySerializer: | |
decorates: 'messenger.transport.serializer' | |
arguments: ['@App\MessageHandler\WithDelaySerializer.inner'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment