Closed
Description
Messenger documentation refers to the Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface
that was included up to 4.2, but it appears that this interface has greatly changed in 4.3.
https://symfony.com/doc/current/components/messenger.html#your-own-receiver
https://symfony.com/doc/current/messenger/custom-transport.html#create-your-transport-factory
In 4.2 used to be:
interface ReceiverInterface
{
public function receive(callable $handler): void;
public function stop(): void;
}
Now it is:
interface ReceiverInterface
{
public function get(): iterable;
public function ack(Envelope $envelope): void;
public function reject(Envelope $envelope): void;
}
Nothing in common but the name. :(
The custom transport I had in place is no longer compatible with 4.3 (experimental module, I know), but now have to look at the included Transports to figure out how to reimplement this one.
Fleshing out this part of the docs would be great.