-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Extend FakeSms & FakeChat notifier #40625
New issue
Have a question about this project? Sign up for a fre 8000 e 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
@OskarStark are/should those transport only for |
@OskarStark Instead of having two separate Notifiers, wouldn't it be more interesting to have a |
We can, but what would be the benefit? We need 2 dedicated transport factories anyway which are registered in the framework bundle plus the package is already named |
Yes |
Yes indeed, no significant advantage, let's keep it that way. |
Sorry @OskarStark I didn't follow last subjects since last time. You're looking for someone to get and handle one subject above ? If so, I check if I can take the subject |
@ke20 glad to hear that 🤞🏻👌🏻 |
I'll try to submit a PR for the logger channel next week. |
any progress here @JamesHemery @ke20 ? 😃 |
Hi @OskarStark ! Not really again... I've start a first little approach but when I wanted to test that I had some errors, but I don't know why at the moment. My error is :
I don't understand why Someone know if an explicit configuration is required ? Edit: An extract of my changements : final class FakeSmsTransportFactory extends AbstractTransportFactory
{
protected $mailer;
protected $entityManager;
public function __construct(MailerInterface $mailer, EntityManagerInterface $entityManager)
{
parent::__construct();
$this->mailer = $mailer;
$this->entityManager = $entityManager;
} |
Check FrameworkExtension.php |
Ok thank you I'll look that ! |
Sorry, something went wrong.
Any news? |
@OskarStark No I can't right now, maybe later :/ |
@OskarStark I'll be glad to work on the For the database, how can/should we configure the storage? Will provide a PR soon |
To be honest I am not really sure about the way to go, proposals? |
clone the messenger database doctrine logic? but it seems huge :s |
Too big 😄 I think we should not implement it for now logger and email is very helpful |
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Add FakeSMS Logger transport | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Sub part of #40625 | License | MIT | Doc PR | WIP Friendly ping `@OskarStark` As commented [here](#40625 (comment)) I use mainly the sms transport, thus wanted to work on the fake sms. This PR adds the `logger`. For the part `an optional channel`, how can we get to here? dymanically retreiving the proper logger based on the dsn config? Commits ------- 2596a72 Add FakeSMS Logger transport
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Add FakeSMS Logger transport | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Sub part of #40625 | License | MIT | Doc PR | WIP Friendly ping `@OskarStark` As commented [here](symfony/symfony#40625 (comment)) I use mainly the sms transport, thus wanted to work on the fake sms. This PR adds the `logger`. For the part `an optional channel`, how can we get to here? dymanically retreiving the proper logger based on the dsn config? Commits ------- 2596a724e4 Add FakeSMS Logger transport
…mie) This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Add FakeChat Logger transport | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Sub part of #40625 | License | MIT | Doc PR | WIP Refs #42123 for Notifier FakeChat Commits ------- 2bfe06f Add FakeChat Logger transport
Based on this comment
fakesms+email
should receive a mailer service id ✅ see initial PR [Notifier] [FakeSms] Add the bridge #39949fakesms+logger
should receive a logger service id + an optional channel ?? 🤔fakesms+database
should receive an entity manager service id + options ?? 🤔And we end up with one Factory (like https://github.com/symfony/symfony/blob/5.x/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesTransportFactory.php) and 6 transports
As another follow up we could create a
symfony/fake-chat-notifier
:fakechat+email
✅ [Notifier] [FakeChat] Added the bridge #40647fakechat+logger
fakechat+database
@JamesHemery @noniagriconomie @ke20 anybody? 😄
The text was updated successfully, but these errors were encountered: