|
@@ -1,5 +1,7 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
|
|
+declare(strict_types=1);
|
|
|
|
|
+
|
|
|
namespace App\Service\Organization;
|
|
namespace App\Service\Organization;
|
|
|
|
|
|
|
|
use App\ApiResources\Organization\OrganizationCreationRequest;
|
|
use App\ApiResources\Organization\OrganizationCreationRequest;
|
|
@@ -136,7 +138,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('New dolibarr structure created (uid : '.$dolibarrId.')');
|
|
$this->logger->info('New dolibarr structure created (uid : '.$dolibarrId.')');
|
|
|
} catch (\Throwable $e) {
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while creating the dolibarr society, please proceed manually.');
|
|
$this->logger->critical('An error happened while creating the dolibarr society, please proceed manually.');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -146,7 +148,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Subdomain registered');
|
|
$this->logger->info('Subdomain registered');
|
|
|
} catch (\Throwable $e) {
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while updating the bind file, please proceed manually.');
|
|
$this->logger->critical('An error happened while updating the bind file, please proceed manually.');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -157,7 +159,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Typo3 website created (root uid: '.$rootUid.')');
|
|
$this->logger->info('Typo3 website created (root uid: '.$rootUid.')');
|
|
|
} catch (\Throwable $e) {
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while creating the typo3 website, please proceed manually.');
|
|
$this->logger->critical('An error happened while creating the typo3 website, please proceed manually.');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -170,7 +172,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Adminassos db updated');
|
|
$this->logger->info('Adminassos db updated');
|
|
|
} catch (\Throwable $e) {
|
|
} catch (\Throwable $e) {
|
|
|
$this->logger->critical('An error happened while updating the adminassos db, please proceed manually.');
|
|
$this->logger->critical('An error happened while updating the adminassos db, please proceed manually.');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -852,7 +854,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Typo3 website deleted');
|
|
$this->logger->info('Typo3 website deleted');
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical('An error happened while deleting the Typo3 website, please proceed manually.');
|
|
$this->logger->critical('An error happened while deleting the Typo3 website, please proceed manually.');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -861,7 +863,7 @@ class OrganizationFactory
|
|
|
$this->logger->info('Dolibarr society switched to prospect');
|
|
$this->logger->info('Dolibarr society switched to prospect');
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical('An error happened while updating the Dolibarr society, please proceed manually.');
|
|
$this->logger->critical('An error happened while updating the Dolibarr society, please proceed manually.');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -872,7 +874,7 @@ class OrganizationFactory
|
|
|
// Nothing to delete
|
|
// Nothing to delete
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical("An error happened while deleting the organization's files, please proceed manually.");
|
|
$this->logger->critical("An error happened while deleting the organization's files, please proceed manually.");
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -883,7 +885,7 @@ class OrganizationFactory
|
|
|
// Nothing to delete
|
|
// Nothing to delete
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
$this->logger->critical("An error happened while deleting the person's files, please proceed manually (id=".$personId.').');
|
|
$this->logger->critical("An error happened while deleting the person's files, please proceed manually (id=".$personId.').');
|
|
|
- $this->logger->debug($e);
|
|
|
|
|
|
|
+ $this->logger->debug((string)$e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|