-
Notifications
You must be signed in to change notification settings - Fork 440
Documentation - quick tour #884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Kon-Xen No, the second example would be wrong for the current version. It was correct for 0.8.x. Since then clients and transports are tied under a single key. EDIT: enqueue-dev/pkg/enqueue-bundle/DependencyInjection/Configuration.php Lines 35 to 55 in 202de9c
EDIT2:
It's probably unrelated to enqueue. Check if you aren't mixing tabs & spaces in your yaml file. |
what would be the correct syntax then ? because what is on the example is not working. |
Check for some common yaml errors in your configuration, like mixing tabs & spaces (yaml requires you to use one or the other for indentation, but not both). If it were a misconfiguration issue, you would have a different exception, for example: Also check if you're not using obsolete 0.8.x version for enqueue bundle, since the configuration presented in quick tour is for current 0.9.x. |
Thank you for your prompt responses and |
@Kon-Xen both https://php-enqueue.github.io/bundle/quick_tour/ and https://php-enqueue.github.io/bundle/config_reference/ look fine to me (well, except that we're already working on expanding comments in config reference to better explain what options do what). What do you mean? |
If you say they are fine, they are fine. Now, if you fancy a chat I can try to elaborate...
because as you explained "Since then clients and transports are tied under a single key."
then again it may be not... I don't know... because in the other example Hope it makes sense, my apologies if not. |
I'm usually available on enqueue's gitter channel if you'd like to discuss enqueue's usage without polluting the issues in the repository with just the discussion :)
Agreed, this sentence might need changing. What it was supposed to say is you need to configure at least one transport. If there is only one it will be considered default. If there are many, then the one under
Not at all. enqueue:
default: # <--- This will become default, because it's keyed as one. Also, it's first :P
transport: "amqp:"
client: ~
some_key:
transport: "null:"
client: ~
key:
transport: "some-other-transport-dsn://"
client: ~
some_other_key_for_yet_another_transport:
transport: "dsn://"
client: ~ Here you have 4 combinations of transports: Keys (or maybe I should call them "names") are entirely up to the developer. |
According to comments in php-enqueue#884.
@Kon-Xen I've created a PR that hopefully addresses your case. See if it clarifies configuration and usage for you. |
[Bundle] Expand quick tour for Symfony Bundle
Hi,
Noticed that in the quick tour of the documentation for the symfony bundle
The example instructions suggest for the config
that gives a yaml syntax error....
Could it be that instead the example should read ?
Best,
K.
The text was updated successfully, but these errors were encountered: