Skip to content

[FrameworkBundle][Notifier] Fixing notifier email definition without mailer #34570

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

Merged
merged 1 commit into from
Nov 24, 2019
Merged

[FrameworkBundle][Notifier] Fixing notifier email definition without mailer #34570

merged 1 commit into from
Nov 24, 2019

Conversation

chr-hertel
Copy link
Contributor

Q A
Branch? 5.0
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

I ran into this while having notifier and messenger but no mailer installed. definition notifier.channel.email gets removed in line 1934 if mailer is not enabled so we can't replace the argument.

In ContainerBuilder.php line 980:
                                                                       
  You have requested a non-existent service "notifier.channel.email".  
                                                                       

@chr-hertel chr-hertel changed the title [FrameworkBundle][Notifier] Only replace argument if mailer is present [FrameworkBundle][Notifier] Fixing notifier email definition without mailer Nov 24, 2019
@fabpot
Copy link
Member

fabpot commented Nov 24, 2019

Thank you @chr-hertel.

fabpot added a commit that referenced this pull request Nov 24, 2019
…on without mailer (chr-hertel)

This PR was merged into the 5.0 branch.

Discussion
----------

[FrameworkBundle][Notifier] Fixing notifier email definition without mailer

| Q             | A
| ------------- | ---
| Branch?       | 5.0
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

I ran into this while having notifier and messenger but no mailer installed. definition `notifier.channel.email` gets removed in line 1934 if mailer is not enabled so we can't replace the argument.

```
In ContainerBuilder.php line 980:

  You have requested a non-existent service "notifier.channel.email".

```

Commits
-------

f12b0c7 only replace argument if mailer is present
@fabpot fabpot merged commit f12b0c7 into symfony:5.0 Nov 24, 2019
@chr-hertel chr-hertel deleted the bugfix/notifier-messenger-without-mailer branch November 24, 2019 17:35
@fabpot fabpot mentioned this pull request Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants