| Current Path : /home/rtorresani/www/vendor/magento/framework-amqp/Topology/BindingInstallerType/ |
| Current File : //home/rtorresani/www/vendor/magento/framework-amqp/Topology/BindingInstallerType/Exchange.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Amqp\Topology\BindingInstallerType;
use Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\BindingInterface;
use Magento\Framework\Amqp\Topology\BindingInstallerInterface;
use PhpAmqpLib\Channel\AMQPChannel;
use Magento\Framework\Amqp\Topology\ArgumentProcessor;
/**
* {@inheritdoc}
*/
class Exchange implements BindingInstallerInterface
{
use ArgumentProcessor;
/**
* {@inheritdoc}
*/
public function install(AMQPChannel $channel, BindingInterface $binding, $exchangeName)
{
$channel->exchange_bind(
$binding->getDestination(),
$exchangeName,
$binding->getTopic(),
false,
$this->processArguments($binding->getArguments())
);
}
}