|
|
@@ -138,7 +138,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('New dolibarr structure created (uid : '.$dolibarrId.')');
|
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while creating the dolibarr society, please proceed manually.');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
|
|
|
@@ -148,7 +148,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Subdomain registered');
|
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while updating the bind file, please proceed manually.');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
|
|
|
@@ -159,7 +159,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Typo3 website created (root uid: '.$rootUid.')');
|
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while creating the typo3 website, please proceed manually.');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
} else {
|
|
|
@@ -172,7 +172,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Adminassos db updated');
|
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while updating the adminassos db, please proceed manually.');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
|
|
|
@@ -603,8 +603,8 @@ class OrganizationFactory
|
|
|
$person = new Person();
|
|
|
|
|
|
if (
|
|
|
- $creationRequestData->getUsername() !== null &&
|
|
|
- $this->personRepository->findOneBy(['username' => $creationRequestData->getUsername()])
|
|
|
+ $creationRequestData->getUsername() !== null
|
|
|
+ && $this->personRepository->findOneBy(['username' => $creationRequestData->getUsername()])
|
|
|
) {
|
|
|
throw new \RuntimeException('Username already in use : '.$creationRequestData->getUsername());
|
|
|
}
|
|
|
@@ -710,8 +710,6 @@ class OrganizationFactory
|
|
|
throw new \RuntimeException('Mobile phone number is invalid (person: '.$organizationMemberCreationRequest->getUsername().')');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
$contactPoint = new ContactPoint();
|
|
|
$contactPoint->setContactType(ContactPointTypeEnum::PRINCIPAL);
|
|
|
$contactPoint->setEmail($organizationMemberCreationRequest->getEmail());
|
|
|
@@ -854,7 +852,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Typo3 website deleted');
|
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical('An error happened while deleting the Typo3 website, please proceed manually.');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
|
|
|
@@ -863,7 +861,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Dolibarr society switched to prospect');
|
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical('An error happened while updating the Dolibarr society, please proceed manually.');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
|
|
|
@@ -874,7 +872,7 @@ class OrganizationFactory
|
|
|
// Nothing to delete
|
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical("An error happened while deleting the organization's files, please proceed manually.");
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
|
|
|
@@ -885,7 +883,7 @@ class OrganizationFactory
|
|
|
// Nothing to delete
|
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical("An error happened while deleting the person's files, please proceed manually (id=".$personId.').');
|
|
|
- $this->logger->debug((string)$e);
|
|
|
+ $this->logger->debug((string) $e);
|
|
|
$withError = true;
|
|
|
}
|
|
|
}
|