/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Stomp/ExchangeFactory.php
35 строк
958 B
Dmytro Horytskyi
ACP2E-4349: [B2B] Purchase orders not auto-converting to sales order with ActiveMQ
13 май 2026, 09:27
13 май 2026, 09:27
2e4a4eb
Код
Авторство
О чём код?
<?php /** * Copyright 2026 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Stomp; use Magento\Framework\MessageQueue\ExchangeFactoryInterface; use Magento\Framework\ObjectManagerInterface; class ExchangeFactory implements ExchangeFactoryInterface { /** * @param ObjectManagerInterface $objectManager * @param StompClientProvider $stompClientProvider * @param string $instanceName */ public function __construct( private readonly ObjectManagerInterface $objectManager, private readonly StompClientProvider $stompClientProvider, private readonly string $instanceName = Exchange::class ) { } /** * @inheritdoc */ public function create($connectionName, array $data = []) { $data['stompClient'] = $this->stompClientProvider->get($connectionName); return $this->objectManager->create($this->instanceName, $data); } }