DigiComp.FlowSymfonyBridge..../Classes/Transport/NullTransport.php
Ferdinand Kuhl 04ee933830
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests Pipeline was successful
Replacing annotations with attributes
2023-02-18 22:53:05 +01:00

29 lines
577 B
PHP

<?php
namespace DigiComp\FlowSymfonyBridge\Messenger\Transport;
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Transport\TransportInterface;
class NullTransport implements TransportInterface
{
public function get(): iterable
{
return new \EmptyIterator();
}
public function ack(Envelope $envelope): void
{
// do nothing
}
public function reject(Envelope $envelope): void
{
// do nothing
}
public function send(Envelope $envelope): Envelope
{
return $envelope;
}
}