-
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.
- Loading branch information
Showing
7 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
_iam/src/Infrastructure/Ecotone/IdentityAccessDbalConfiguration.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,29 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the medicalmundi/marketplace-accounts | ||
* | ||
* @copyright (c) 2023 MedicalMundi | ||
* | ||
* This software consists of voluntary contributions made by many individuals | ||
* {@link https://github.com/medicalmundi/marketplace-accounts/graphs/contributors developer} and is licensed under the MIT license. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* @license https://github.com/MedicalMundi/marketplace-accounts/blob/main/LICENSE MIT | ||
*/ | ||
|
||
namespace IdentityAccess\Infrastructure\Ecotone; | ||
|
||
use Ecotone\Dbal\Configuration\DbalConfiguration; | ||
use Ecotone\Messaging\Attribute\ServiceContext; | ||
|
||
class IdentityAccessDbalConfiguration | ||
{ | ||
// #[ServiceContext] | ||
// public function getDbalConfiguration(): DbalConfiguration | ||
// { | ||
// return DbalConfiguration::createWithDefaults() | ||
// ->withDocumentStore(initializeDatabaseTable: true, enableDocumentStoreAggregateRepository: true); | ||
// } | ||
} |
28 changes: 28 additions & 0 deletions
28
_iam/src/Infrastructure/Ecotone/IdentityAccessMessagingConfiguration.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,28 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the medicalmundi/marketplace-accounts | ||
* | ||
* @copyright (c) 2023 MedicalMundi | ||
* | ||
* This software consists of voluntary contributions made by many individuals | ||
* {@link https://github.com/medicalmundi/marketplace-accounts/graphs/contributors developer} and is licensed under the MIT license. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* @license https://github.com/MedicalMundi/marketplace-accounts/blob/main/LICENSE MIT | ||
*/ | ||
|
||
namespace IdentityAccess\Infrastructure\Ecotone; | ||
|
||
use Ecotone\Dbal\DbalBackedMessageChannelBuilder; | ||
use Ecotone\Messaging\Attribute\ServiceContext; | ||
|
||
class IdentityAccessMessagingConfiguration | ||
{ | ||
#[ServiceContext] | ||
public function identityAccessDistributedChannel(): DbalBackedMessageChannelBuilder | ||
{ | ||
return DbalBackedMessageChannelBuilder::create("iam_distributed"); | ||
} | ||
} |
Empty file.
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
30 changes: 30 additions & 0 deletions
30
_notifier/src/AdapterForAntiCorruptionLayer/DistributedMessage/MessagePublisher.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,30 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the medicalmundi/marketplace-accounts | ||
* | ||
* @copyright (c) 2023 MedicalMundi | ||
* | ||
* This software consists of voluntary contributions made by many individuals | ||
* {@link https://github.com/medicalmundi/marketplace-accounts/graphs/contributors developer} and is licensed under the MIT license. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* @license https://github.com/MedicalMundi/marketplace-accounts/blob/main/LICENSE MIT | ||
*/ | ||
|
||
namespace Notifier\AdapterForAntiCorruptionLayer\DistributedMessage; | ||
|
||
use Ecotone\Messaging\Attribute\Asynchronous; | ||
use Ecotone\Modelling\CommandBus; | ||
use Psr\Log\LoggerInterface; | ||
|
||
#[Asynchronous("notifier_distributed")] | ||
class MessagePublisher | ||
{ | ||
public function __construct( | ||
private readonly CommandBus $commandBus, | ||
private readonly LoggerInterface $logger, | ||
) { | ||
} | ||
} |
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