|
103 | 103 | use Spryker\Shared\SessionRedis\SessionRedisConstants;
|
104 | 104 | use Spryker\Shared\Storage\StorageConstants;
|
105 | 105 | use Spryker\Shared\StorageRedis\StorageRedisConstants;
|
106 |
| -use Spryker\Shared\Store\StoreConstants; |
107 | 106 | use Spryker\Shared\SymfonyMailer\SymfonyMailerConstants;
|
108 | 107 | use Spryker\Shared\Synchronization\SynchronizationConstants;
|
109 | 108 | use Spryker\Shared\Tax\TaxConstants;
|
|
688 | 687 | $config[KernelConstants::DOMAIN_WHITELIST],
|
689 | 688 | $aopApplicationConfiguration['APP_DOMAINS'] ?? [],
|
690 | 689 | );
|
691 |
| -$config[StoreConstants::STORE_NAME_REFERENCE_MAP] = $aopApplicationConfiguration['STORE_NAME_REFERENCE_MAP'] ?? []; |
692 | 690 | $config[AppCatalogGuiConstants::APP_CATALOG_SCRIPT_URL] = $aopApplicationConfiguration['APP_CATALOG_SCRIPT_URL'] ?? '';
|
693 | 691 |
|
694 | 692 | $aopAuthenticationConfiguration = json_decode(html_entity_decode((string)getenv('SPRYKER_AOP_AUTHENTICATION')), true);
|
|
705 | 703 | = $config[AppCatalogGuiConstants::TENANT_IDENTIFIER]
|
706 | 704 | = getenv('SPRYKER_TENANT_IDENTIFIER') ?: '';
|
707 | 705 |
|
708 |
| -$config[MessageBrokerConstants::MESSAGE_TO_CHANNEL_MAP] = [ |
| 706 | +$config[MessageBrokerConstants::MESSAGE_TO_CHANNEL_MAP] = |
| 707 | +$config[MessageBrokerAwsConstants::MESSAGE_TO_CHANNEL_MAP] = [ |
709 | 708 | PaymentMethodAddedTransfer::class => 'payment-method-commands',
|
710 | 709 | PaymentMethodDeletedTransfer::class => 'payment-method-commands',
|
711 | 710 | PaymentCancelReservationRequestedTransfer::class => 'payment-commands',
|
|
727 | 726 | ProductUpdatedTransfer::class => 'product-events',
|
728 | 727 | ProductDeletedTransfer::class => 'product-events',
|
729 | 728 | InitializeProductExportTransfer::class => 'product-commands',
|
730 |
| - AddReviewsTransfer::class => 'product-review-commands', |
731 |
| - OrderStatusChangedTransfer::class => 'order-events', |
732 | 729 | SearchEndpointAvailableTransfer::class => 'search-commands',
|
733 | 730 | SearchEndpointRemovedTransfer::class => 'search-commands',
|
| 731 | + AddReviewsTransfer::class => 'product-review-commands', |
| 732 | + OrderStatusChangedTransfer::class => 'order-events', |
734 | 733 | ConfigureTaxAppTransfer::class => 'tax-commands',
|
735 | 734 | DeleteTaxAppTransfer::class => 'tax-commands',
|
736 | 735 | SubmitPaymentTaxInvoiceTransfer::class => 'payment-tax-invoice-commands',
|
737 | 736 | ];
|
738 | 737 |
|
739 |
| -$config[MessageBrokerConstants::CHANNEL_TO_TRANSPORT_MAP] = [ |
740 |
| - 'payment-events' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
741 |
| - 'payment-method-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
742 |
| - 'asset-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
743 |
| - 'product-review-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
744 |
| - 'search-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
745 |
| - 'product-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
746 |
| - 'merchant-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
747 |
| - 'tax-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
748 |
| - 'payment-commands' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
749 |
| - 'product-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
750 |
| - 'order-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
751 |
| - 'merchant-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
752 |
| - 'payment-tax-invoice-commands' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
| 738 | +$config[MessageBrokerConstants::CHANNEL_TO_RECEIVER_TRANSPORT_MAP] = [ |
| 739 | + 'payment-events' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 740 | + 'payment-method-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 741 | + 'asset-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 742 | + 'product-review-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 743 | + 'product-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 744 | + 'search-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 745 | + 'tax-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
753 | 746 | ];
|
754 | 747 |
|
755 |
| -$config[MessageBrokerAwsConstants::CHANNEL_TO_RECEIVER_TRANSPORT_MAP] = [ |
756 |
| - 'payment-events' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
757 |
| - 'payment-method-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
758 |
| - 'asset-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
759 |
| - 'product-review-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
760 |
| - 'search-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
761 |
| - 'product-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
762 |
| - 'merchant-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
763 |
| - 'tax-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT, |
| 748 | +$config[MessageBrokerConstants::CHANNEL_TO_SENDER_TRANSPORT_MAP] = [ |
| 749 | + 'payment-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 750 | + 'product-events' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 751 | + 'order-events' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
| 752 | + 'payment-tax-invoice-commands' => MessageBrokerAwsConfig::HTTP_CHANNEL_TRANSPORT, |
764 | 753 | ];
|
765 | 754 |
|
766 |
| -$config[MessageBrokerAwsConstants::CHANNEL_TO_SENDER_TRANSPORT_MAP] = [ |
767 |
| - 'payment-commands' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
768 |
| - 'product-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
769 |
| - 'order-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
770 |
| - 'merchant-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
771 |
| - 'payment-tax-invoice-commands' => MessageBrokerAwsConfig::HTTP_TRANSPORT, |
772 |
| -]; |
773 |
| - |
774 |
| -$aopInfrastructureConfiguration = json_decode(html_entity_decode((string)getenv('SPRYKER_AOP_INFRASTRUCTURE')), true); |
775 |
| - |
776 |
| -$config[MessageBrokerAwsConstants::SQS_RECEIVER_CONFIG] = json_encode($aopInfrastructureConfiguration['SPRYKER_MESSAGE_BROKER_SQS_RECEIVER_CONFIG'] ?? []); |
777 |
| -$config[MessageBrokerAwsConstants::HTTP_SENDER_CONFIG] = $aopInfrastructureConfiguration['SPRYKER_MESSAGE_BROKER_HTTP_SENDER_CONFIG'] ?? []; |
| 755 | +// -------------------------------- ACP AWS -------------------------------------- |
| 756 | +$config[MessageBrokerAwsConstants::HTTP_CHANNEL_SENDER_BASE_URL] = getenv('SPRYKER_MESSAGE_BROKER_HTTP_CHANNEL_SENDER_BASE_URL') ?: ''; |
| 757 | +$config[MessageBrokerAwsConstants::HTTP_CHANNEL_RECEIVER_BASE_URL] = getenv('SPRYKER_MESSAGE_BROKER_HTTP_CHANNEL_RECEIVER_BASE_URL') ?: ''; |
778 | 758 |
|
779 | 759 | $config[MessageBrokerConstants::IS_ENABLED] = (
|
780 |
| - !empty($aopInfrastructureConfiguration['SPRYKER_MESSAGE_BROKER_SQS_RECEIVER_CONFIG']) |
781 |
| - && !empty($aopInfrastructureConfiguration['SPRYKER_MESSAGE_BROKER_HTTP_SENDER_CONFIG']) |
| 760 | + $config[MessageBrokerAwsConstants::HTTP_CHANNEL_SENDER_BASE_URL] |
| 761 | + && $config[MessageBrokerAwsConstants::HTTP_CHANNEL_RECEIVER_BASE_URL] |
782 | 762 | );
|
783 | 763 |
|
784 | 764 | // ----------------------------------------------------------------------------
|
|
0 commit comments