/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Stomp/StompClientFactory.php
53 строки
1 KB
Dnyaneshwar Jambhulkar
AC-14558::Migration form RabbitMQ to Apache ActiveMQ
21 июл 2025, 18:35
21 июл 2025, 18:35
446a6f3
Код
Авторство
О чём код?
<?php /** * Copyright 2025 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Stomp; /** * Factory class for @see \Magento\Framework\Stomp\StompClient */ class StompClientFactory { /** * Object Manager instance * * @var \Magento\Framework\ObjectManagerInterface */ protected $_objectManager = null; /** * Instance name to create * * @var string */ protected $_instanceName = null; /** * Factory constructor * * @param \Magento\Framework\ObjectManagerInterface $objectManager * @param string $instanceName */ public function __construct( \Magento\Framework\ObjectManagerInterface $objectManager, string $instanceName = \Magento\Framework\Stomp\StompClient::class ) { $this->_objectManager = $objectManager; $this->_instanceName = $instanceName; } /** * Create class instance with specified parameters * * @param array $data * @return \Magento\Framework\Stomp\StompClient */ public function create(array $data = []): StompClient { return $this->_objectManager->create($this->_instanceName, $data); } }