-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add FakeSMS Logger transport #42123
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
Conversation
src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php
Outdated
Show resolved
Hide resolved
789d0d4
to
e04c14d
Compare
@OskarStark done, if wanted, I can create a second PR for FakeChatLoggerTransport |
e04c14d
to
422b8a8
Compare
src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php
Show resolved
Hide resolved
Yes please do 👍🏻 |
422b8a8
to
5fd3504
Compare
5fd3504
to
ce8c71d
8000
Compare
src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/TestLogger.php
Outdated
Show resolved
Hide resolved
Sorry for asking. But why can't we just add a logger to the FakeSMS transport? |
In this case one need to configure the email stuff just to get the logging. If you have no mailing in your project, you would need to set it up just for local dev to have the entry point via DSN |
Please add a test case to UnsupportedSchemeExceptionTest Thanks |
ce8c71d
to
cfdf337
Compare
PR rebased, also on
I am sorry I really do not understand this, when I check into this class Notifier\UnsupportedSchemeExceptionTest, I already see logic on can you be more precise on the way to do the required test? thank you edit: appveyor failure is not related to this addition |
cfdf337
to
2596a72
Compare
You are right, it is just a new transport for an existing bridge 👍 |
Thanks for your work on this new feature! |
…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
…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 symfony/symfony#42123 for Notifier FakeChat Commits ------- 2bfe06fac7 Add FakeChat Logger transport
Friendly ping @OskarStark
As commented here 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?