Home
last modified time | relevance | path

Searched refs:message_service (Results 1 – 12 of 12) sorted by relevance

/webtrees/app/Http/RequestHandlers/
H A DBroadcastAction.php42 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\BroadcastAction
45 * @param MessageService $message_service
47 public function __construct(MessageService $message_service) argument
49 $this->message_service = $message_service;
59 $recipients = $this->message_service->recipientTypes();
75 foreach ($this->message_service->recipientUsers($to) as $to_user) {
76 if ($this->message_service->deliverMessage($user, $to_user, $subject, $body, '', $ip)) {
H A DBroadcastPage.php36 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\BroadcastPage
39 * @param MessageService $message_service
41 public function __construct(MessageService $message_service) argument
43 $this->message_service = $message_service;
53 $recipient_types = $this->message_service->recipientTypes();
66 'recipients' => $this->message_service->recipientUsers($to),
H A DContactAction.php56 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\ContactAction
65 * @param MessageService $message_service
72 MessageService $message_service, argument
80 $this->message_service = $message_service;
105 if (!in_array($to_user, $this->message_service->validContacts($tree), false)) {
143 if ($this->message_service->deliverMessage($sender, $to_user, $subject, $body, $url, $ip)) {
H A DContactPage.php45 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\ContactPage
51 * @param MessageService $message_service
56 MessageService $message_service, argument
61 $this->message_service = $message_service;
81 …if ($to_user === null || !in_array($to_user, $this->message_service->validContacts($tree), false))…
H A DAccountEdit.php46 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\AccountEdit
51 * @param MessageService $message_service
54 public function __construct(MessageService $message_service, ModuleService $module_service) argument
56 $this->message_service = $message_service;
91 'contact_methods' => $this->message_service->contactMethods(),
H A DMessageAction.php45 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\MessageAction
50 * @param MessageService $message_service
53 public function __construct(MessageService $message_service, UserService $user_service) argument
56 $this->message_service = $message_service;
90 if ($this->message_service->deliverMessage($user, $to_user, $subject, $body, $url, $ip)) {
H A DUserEditPage.php44 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\UserEditPage
53 * @param MessageService $message_service
59 MessageService $message_service, argument
64 $this->message_service = $message_service;
112 'contact_methods' => $this->message_service->contactMethods(),
H A DControlPanel.php84 private MessageService $message_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\ControlPanel
99 * @param MessageService $message_service
109 MessageService $message_service, argument
118 $this->message_service = $message_service;
158 'recipients' => $this->message_service->recipientTypes(),
/webtrees/tests/app/Http/RequestHandlers/
H A DBroadcastPageTest.php36 $message_service = $this->createMock(MessageService::class);
37 $message_service->method('recipientTypes')->willReturn(['foo' => 'FOO']);
42 $handler = new BroadcastPage($message_service);
50 $message_service = $this->createMock(MessageService::class);
51 $message_service->method('recipientTypes')->willReturn(['foo' => 'FOO', 'bar' => 'BAR']);
52 $message_service->method('recipientUsers')->willReturn(new Collection());
57 $handler = new BroadcastPage($message_service);
H A DAccountEditTest.php38 $message_service = $this->createMock(MessageService::class);
46 $handler = new AccountEdit($message_service, $module_service);
H A DUserEditPageTest.php44 $message_service = new MessageService($mail_service, $user_service);
46 …$handler = new UserEditPage($message_service, $module_service, $tree_service, $user_servic…
H A DControlPanelControllerTest.php45 $message_service = new MessageService(new EmailService(), new UserService());
54 … = new ControlPanel($admin_service, $housekeeping_service, $message_service, $module_serv…