Releases: treehouselabs/queue
Releases · treehouselabs/queue
0.5.0 - Support Symfony 5
0.4.0 - Support Symfony 4
- Dropped support for Symfony 2
- Added support for Symfony 4
v0.3.1
v0.3.0
Changes
- Added
cancel
method to consumer - Added property to
ConsumeEvent
to indicate if further consuming should stop
Breaking changes
-
TreeHouse\Queue\Consumer#consume()
has a different signature:Before:
public function consume($flags = QueueInterface::NOPARAM)
After:
public function consume($consumerTag = null, $flags = QueueInterface::NOPARAM)
-
TreeHouse\Queue\Amqp\Driver\Amqp\Queue#consume()
previously always returned
false. It now respects the return value of the callback itself.
v0.2.0
Changes
- Added support for delayed messages, via the delayed message exchange plugin
- Added
ack
/nack
support to consumers - Consumers now work via a callback that calls the given processor
- Consumers now dispatch events when consuming messages
- Added getter/setter for headers on
Message
class - Added support to configure connection parameters
Breaking changes
- Moved
TreeHouse\Queue\Consumer
toTreeHouse\Queue\Consumer\Consumer
- Consumers now work with
EnvelopeInterface
instances instead ofMessage
instances, which are only for composing new messages. - Removed
MessageProvider
and its interface, as it was basically a copy of
the consumer class. Instead, consumers now work directly with a queue/processor. - Exchanges and queues are no longer declared automatically on factory creation
v0.1.0
Fixes
- The Doctrine serializer removed the identifier keys, which is a problem when
using entities with composite identifiers.
Changes
- Added Symfony3 support
- Added timestamp property to
Message
Breaking changes
-
Implemented AMQP abstraction layer: all AMQP related classes have been moved.
- If you're importing/extending classes from this library, you need to update
their namespaces. - All references to the
\AMQP*
classes/constants need to be changed to
their counterparts provided by this library. For instance:AMQP_REQUEUE
becomesQueueInterface::REQUEUE
.
- If you're importing/extending classes from this library, you need to update
-
Renamed base exception from
QueueException
toAmqpException
-
Message
andMessageProperties
class properties are now private instead of protected -
The Jms serializer has a changed constructor and now accepts a context rather
than groups:Before:
public function __construct(BaseSerializer $serializer, array $groups = [], $format = 'json')
After:
public function __construct(BaseSerializer $serializer, $format = 'json', SerializationContext $context = null)
v0.0.4
v0.0.3
v0.0.2
First release
v0.0.1 Fixed consumer test