|
|
@@ -214,17 +214,17 @@ class SubdomainService
|
|
|
/**
|
|
|
* Build the data model for the confirmation email.
|
|
|
*/
|
|
|
- protected function getMailModel(Subdomain $subdomain): SubdomainChangeModel
|
|
|
- {
|
|
|
- $adminAccess = $this->accessRepository->findAdminAccess($subdomain->getOrganization());
|
|
|
-
|
|
|
- /* @phpstan-ignore-next-line */
|
|
|
- return (new SubdomainChangeModel())
|
|
|
- ->setAuthorId($adminAccess->getId())
|
|
|
- ->setOrganizationId($subdomain->getOrganization()->getId())
|
|
|
- ->setSubdomainId($subdomain->getId())
|
|
|
- ->setUrl($this->organizationUtils->getOrganizationWebsite($subdomain->getOrganization()));
|
|
|
- }
|
|
|
+ protected function getMailModel(Subdomain $subdomain): SubdomainChangeModel
|
|
|
+ {
|
|
|
+ $adminAccess = $this->accessRepository->findAdminAccess($subdomain->getOrganization());
|
|
|
+
|
|
|
+ /* @phpstan-ignore-next-line */
|
|
|
+ return (new SubdomainChangeModel())
|
|
|
+ ->setAuthorId($adminAccess->getId())
|
|
|
+ ->setOrganizationId($subdomain->getOrganization()->getId())
|
|
|
+ ->setSubdomainId($subdomain->getId())
|
|
|
+ ->setUrl($this->organizationUtils->getOrganizationWebsite($subdomain->getOrganization()));
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Send the confirmation email to the organization after a new subdomain has been activated.
|