-
Notifications
You must be signed in to change notification settings - Fork 183
Added an optional flashmessage listener #183
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
Changes from 1 commit
9e02547
f21d3ea
ef1ee68
8e1d37b
31de539
97fd7dd
fb105f3
ac283df
f884e39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,16 +65,12 @@ public function load(array $configs, ContainerBuilder $container) | |
|
|
||
| $container->getDefinition('fos_message.recipients_data_transformer') | ||
| ->replaceArgument(0, new Reference($config['user_transformer'])); | ||
| if($config['flash_messages']['enabled']) | ||
|
|
||
| if ($config['flash_messages']['enabled']) | ||
| { | ||
| $loader->load('flash.xml'); | ||
| $container->setAlias('fos_message.flash_listener', $config['flash_messages']['service']); | ||
| if($config['flash_messages']['flash_key'] !== null) | ||
| { | ||
| $container->getDefinition('fos_message.flash_listener.default') | ||
| ->replaceArgument(2, $config['flash_messages']['flash_key']); | ||
| } | ||
| $loader->load('flash.xml'); | ||
| $container->getDefinition('fos_message.flash_listener') | ||
| ->replaceArgument(2, $config['flash_messages']['flash_key']); | ||
|
||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this curly brace should be on the previous line