Componette

Componette

Kdyby

Kdyby / RabbitMq v2.0.0

Integration of php-amqplib with RabbitMq and Nette Framework

download-cloud-line composer require kdyby/rabbitmq
  • v2.0.0 v2.0.0

    Nette 3.0 compatibility

    • Dropped PHP <7.1
    • Support up to PHP 7.4 🐘
    • travis: drop kdyby/code-checker
    • travis: run parallel-lint from vendor
    • Exception split to own files 💥
    • setInject is deprecated, used addTag

    👴 Deprecated:

    • \Kdyby\RabbitMq\Exception::class => \Kdyby\RabbitMq\Exception\Exception::class
    • \Kdyby\RabbitMq\InvalidArgumentException::class => \Kdyby\RabbitMq\Exception\InvalidArgumentException::class
    • \Kdyby\RabbitMq\QueueNotFoundException::class => \Kdyby\RabbitMq\Exception\QueueNotFoundException::class
    • \Kdyby\RabbitMq\TerminateException::class => \Kdyby\RabbitMq\Exception\TerminateException::class

    ⚠️ BC Breaks:

    • Kdyby/RabbitMq/BaseConsumer::setCallback argument has type callable
    • Kdyby/RabbitMq/BaseConsumer::setConsumerTag strict argument type string
    • Kdyby/RabbitMq/BaseConsumer::getConsumerTag strict return type string
    • Kdyby/RabbitMq/BaseConsumer::setQosOptions strict argument types
    • Kdyby/RabbitMq/BaseConsumer::getIdleTimeout strict return type string
    • Kdyby/RabbitMq/Connection::getConsumer strict argument type string
    • Kdyby/RabbitMq/Connection::getProducer strict argument type string
    • Kdyby/RabbitMq/Connection::getRpcClient strict argument type string
    • Kdyby/RabbitMq/Connection::getRpcServer strict argument type string
    • Kdyby/RabbitMq/Connection::doCreateChannel strict argument type string
    • Kdyby/RabbitMq/Consumer::setMemoryLimit strict argument type
    • Kdyby/RabbitMq/Consumer::consume strict argument type
    • Kdyby/RabbitMq/Consumer::isRamAlmostOverloaded strict return type
    • Kdyby/RabbitMq/DI/IConsumersProvider::getRabbitConsumers strict return type
    • Kdyby/RabbitMq/DI/IProducersProvider::getRabbitProducers strict return type
    • Kdyby/RabbitMq/DI/IRpcClientsProvider::getRabbitRpcClients strict return type
    • Kdyby/RabbitMq/DI/IRpcServersProvider::getRabbitRpcServers strict return type
    • Kdyby/RabbitMq/IConnection::getConsumer strict argument and return type
    • Kdyby/RabbitMq/IConnection::getProducer strict argument and return type
    • Kdyby/RabbitMq/IConnection::getRpcClient strict argument and return type
    • Kdyby/RabbitMq/IConnection::getRpcServer strict argument and return type
    • Kdyby/RabbitMq/IProducer::setRoutingKey strict argument and return type
    • Kdyby/RabbitMq/IProducer::setContentType strict argument and return type
    • Kdyby/RabbitMq/IProducer::setDeliveryMode strict argument and return type
    • Kdyby/RabbitMq/IProducer::publish strict argument and return type
    • Kdyby/RabbitMq/MultipleConsumer::processQueueMessage strict argument types
    • Kdyby/RabbitMq/RpcClient::addRequest strict argument types
    • Kdyby/RabbitMq/RpcServer::sendReply strict argument types

    Thanks @VBoss & @jiripudil & @Jakub-Fajkus

  • v1.2.0 v1.2.0

    For Nette 2.4.

  • v1.1.0 v1.1.0

    • Introduced "magic" TerminateException by @glubo
    • Add Consumer::onTimeout() event
    • Require amqplib ~2.5

    This release is for Nette >=2.2

Componette Componette felix@nette.org