Spaces:
No application file
No application file
File size: 824 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<?php
declare(strict_types=1);
namespace Mautic\MessengerBundle\Transport;
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
use Symfony\Component\Messenger\Transport\TransportFactoryInterface;
use Symfony\Component\Messenger\Transport\TransportInterface;
/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class NullTransportFactory implements TransportFactoryInterface
{
/**
* @param mixed[] $options
*/
public function createTransport(string $dsn, array $options, SerializerInterface $serializer): TransportInterface
{
return new NullTransport();
}
/**
* @param mixed[] $options
*/
public function supports(string $dsn, array $options): bool
{
return str_starts_with($dsn, 'null://');
}
}
|