-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/organisation-sign-up-form-notifications (#252)
* Added emails for new org sign up form * Updated naming * Added emails and tests for approve and reject * Fixed recursion bug * Linted code * Using latst version of grokzen/redis-cluster * Refactored * Extracted redis cluster discovery IP for only mac envs
- Loading branch information
1 parent
d83c4b8
commit 7dfdbf8
Showing
18 changed files
with
678 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
app/Emails/OrganisationSignUpFormApproved/NotifySubmitterEmail.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Emails\OrganisationSignUpFormApproved; | ||
|
||
use App\Emails\Email; | ||
|
||
class NotifySubmitterEmail extends Email | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected function getTemplateId(): string | ||
{ | ||
return config('ck.notifications_template_ids.organisation_sign_up_form_approved.notify_submitter.email'); | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReference(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReplyTo(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getContent(): string | ||
{ | ||
return 'Pending to be sent. Content will be filled once sent.'; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
app/Emails/OrganisationSignUpFormReceived/NotifyGlobalAdminEmail.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Emails\OrganisationSignUpFormReceived; | ||
|
||
use App\Emails\Email; | ||
|
||
class NotifyGlobalAdminEmail extends Email | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected function getTemplateId(): string | ||
{ | ||
return config('ck.notifications_template_ids.organisation_sign_up_form_received.notify_global_admin.email'); | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReference(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReplyTo(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getContent(): string | ||
{ | ||
return 'Pending to be sent. Content will be filled once sent.'; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
app/Emails/OrganisationSignUpFormReceived/NotifySubmitterEmail.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Emails\OrganisationSignUpFormReceived; | ||
|
||
use App\Emails\Email; | ||
|
||
class NotifySubmitterEmail extends Email | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected function getTemplateId(): string | ||
{ | ||
return config('ck.notifications_template_ids.organisation_sign_up_form_received.notify_submitter.email'); | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReference(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReplyTo(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getContent(): string | ||
{ | ||
return 'Pending to be sent. Content will be filled once sent.'; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
app/Emails/OrganisationSignUpFormRejected/NotifySubmitterEmail.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Emails\OrganisationSignUpFormRejected; | ||
|
||
use App\Emails\Email; | ||
|
||
class NotifySubmitterEmail extends Email | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected function getTemplateId(): string | ||
{ | ||
return config('ck.notifications_template_ids.organisation_sign_up_form_rejected.notify_submitter.email'); | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReference(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
protected function getReplyTo(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getContent(): string | ||
{ | ||
return 'Pending to be sent. Content will be filled once sent.'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.