Skip to content

Commit

Permalink
Merge pull request #1592 from ConductionNL/feature/MF-81/move-email-BL
Browse files Browse the repository at this point in the history
Moved email BL to CustomerNotificatsionBundle + updated gateway -> configuration default with verify = true
  • Loading branch information
WilcoLouwerse authored Dec 11, 2023
2 parents bccb7b4 + 36fbf45 commit 9c51b7b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1,763 deletions.
109 changes: 0 additions & 109 deletions api/src/ActionHandler/EmailHandler.php

This file was deleted.

11 changes: 9 additions & 2 deletions api/src/Entity/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,9 @@ class Gateway
*
* @ORM\Column(type="array", nullable=true)
*/
private ?array $configuration = [];
private ?array $configuration = [
"verify" => true
];

/**
* @var array|null The configuration for endpoints on this source, mostly mapping for now.
Expand Down Expand Up @@ -812,7 +814,12 @@ public function fromSchema(array $schema): self
array_key_exists('headers', $schema) ? $this->setHeaders($schema['headers']) : '';
array_key_exists('translationConfig', $schema) ? $this->setTranslationConfig($schema['translationConfig']) : '';
array_key_exists('type', $schema) ? $this->setType($schema['type']) : '';
array_key_exists('configuration', $schema) ? $this->setConfiguration($schema['configuration']) : '';
if (isset($schema['configuration']) === true) {
if (isset($schema['configuration']['verify']) === false) {
$schema['configuration']['verify'] = true;
}
$this->setConfiguration($schema['configuration']);
}
array_key_exists('endpointsConfig', $schema) ? $this->setEndpointsConfig($schema['endpointsConfig']) : '';
array_key_exists('isEnabled', $schema) ? $this->setIsEnabled($schema['isEnabled']) : '';

Expand Down
Loading

0 comments on commit 9c51b7b

Please sign in to comment.