File tree Expand file tree Collapse file tree
Contexts/Mooc/Notifications/infrastructure
apps/mooc_backend/config/dependency-injection Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { EmailSender } from '../domain/EmailSender' ;
2+ import { Email } from '../domain/Email' ;
3+
4+ export default class FakeEmailSender implements EmailSender {
5+ async send ( email : Email ) : Promise < void > {
6+ // do nothing
7+ }
8+ }
Original file line number Diff line number Diff line change 1+ services :
2+ Mooc.notifications.EmailSender :
3+ class : ../../../../../Contexts/Mooc/Notifications/infrastructure/FakeEmailSender
4+ arguments : []
5+
6+ Mooc.notifications.SendWelcomeUserEmail :
7+ class : ../../../../../Contexts/Mooc/Notifications/application/SendWelcomeUserEmail/SendWelcomeUserEmail
8+ arguments : ["@Mooc.notifications.EmailSender"]
9+
10+ Mooc.notifications.SendWelcomeUserEmailOnUserRegistered :
11+ class : ../../../../../Contexts/Mooc/Notifications/application/SendWelcomeUserEmail/SendWelcomeUserEmailOnUserRegistered
12+ arguments : ["@Mooc.notifications.SendWelcomeUserEmail"]
13+ tags :
14+ - { name: 'domainEventSubscriber' }
Original file line number Diff line number Diff line change 22 - { resource: ./Shared/application.yaml }
33 - { resource: ./Courses/application.yaml }
44 - { resource: ./CoursesCounter/application.yaml }
5+ - { resource: ./Notifications/application.yaml }
56 - { resource: ./apps/application.yaml }
You can’t perform that action at this time.
0 commit comments