Fix CS
This commit is contained in:
parent
2f5047ea3d
commit
a841a3e52c
@ -19,6 +19,7 @@ use MongoDB\Driver\Exception\WriteException;
|
|||||||
use MongoDB\Exception\DriverRuntimeException;
|
use MongoDB\Exception\DriverRuntimeException;
|
||||||
use MongoDB\Exception\InvalidArgumentException as MongoInvalidArgumentException;
|
use MongoDB\Exception\InvalidArgumentException as MongoInvalidArgumentException;
|
||||||
use MongoDB\Exception\UnsupportedException;
|
use MongoDB\Exception\UnsupportedException;
|
||||||
|
use Symfony\Component\Lock\BlockingStoreInterface;
|
||||||
use Symfony\Component\Lock\Exception\InvalidArgumentException;
|
use Symfony\Component\Lock\Exception\InvalidArgumentException;
|
||||||
use Symfony\Component\Lock\Exception\InvalidTtlException;
|
use Symfony\Component\Lock\Exception\InvalidTtlException;
|
||||||
use Symfony\Component\Lock\Exception\LockAcquiringException;
|
use Symfony\Component\Lock\Exception\LockAcquiringException;
|
||||||
@ -27,7 +28,6 @@ use Symfony\Component\Lock\Exception\LockExpiredException;
|
|||||||
use Symfony\Component\Lock\Exception\LockStorageException;
|
use Symfony\Component\Lock\Exception\LockStorageException;
|
||||||
use Symfony\Component\Lock\Exception\NotSupportedException;
|
use Symfony\Component\Lock\Exception\NotSupportedException;
|
||||||
use Symfony\Component\Lock\Key;
|
use Symfony\Component\Lock\Key;
|
||||||
use Symfony\Component\Lock\BlockingStoreInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MongoDbStore is a StoreInterface implementation using MongoDB as a storage
|
* MongoDbStore is a StoreInterface implementation using MongoDB as a storage
|
||||||
|
@ -15,13 +15,13 @@ use Doctrine\DBAL\Driver\PDOException;
|
|||||||
use Doctrine\DBAL\Exception\DeadlockException;
|
use Doctrine\DBAL\Exception\DeadlockException;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
|
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
|
||||||
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
|
||||||
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineReceivedStamp;
|
||||||
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineReceiver;
|
||||||
use Symfony\Component\Messenger\Envelope;
|
use Symfony\Component\Messenger\Envelope;
|
||||||
use Symfony\Component\Messenger\Exception\MessageDecodingFailedException;
|
use Symfony\Component\Messenger\Exception\MessageDecodingFailedException;
|
||||||
use Symfony\Component\Messenger\Exception\TransportException;
|
use Symfony\Component\Messenger\Exception\TransportException;
|
||||||
use Symfony\Component\Messenger\Stamp\TransportMessageIdStamp;
|
use Symfony\Component\Messenger\Stamp\TransportMessageIdStamp;
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineReceivedStamp;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineReceiver;
|
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\PhpSerializer;
|
use Symfony\Component\Messenger\Transport\Serialization\PhpSerializer;
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
|
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
|
||||||
use Symfony\Component\Serializer as SerializerComponent;
|
use Symfony\Component\Serializer as SerializerComponent;
|
||||||
|
@ -13,11 +13,11 @@ namespace Symfony\Component\Messenger\Bridge\Doctrine\Tests\Transport;
|
|||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
|
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
|
||||||
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
|
||||||
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineSender;
|
||||||
use Symfony\Component\Messenger\Envelope;
|
use Symfony\Component\Messenger\Envelope;
|
||||||
use Symfony\Component\Messenger\Stamp\DelayStamp;
|
use Symfony\Component\Messenger\Stamp\DelayStamp;
|
||||||
use Symfony\Component\Messenger\Stamp\TransportMessageIdStamp;
|
use Symfony\Component\Messenger\Stamp\TransportMessageIdStamp;
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineSender;
|
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
||||||
|
|
||||||
class DoctrineSenderTest extends TestCase
|
class DoctrineSenderTest extends TestCase
|
||||||
|
@ -13,9 +13,9 @@ namespace Symfony\Component\Messenger\Bridge\Doctrine\Tests\Transport;
|
|||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
|
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
|
||||||
use Symfony\Component\Messenger\Envelope;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
|
||||||
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineTransport;
|
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineTransport;
|
||||||
|
use Symfony\Component\Messenger\Envelope;
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
||||||
use Symfony\Component\Messenger\Transport\TransportInterface;
|
use Symfony\Component\Messenger\Transport\TransportInterface;
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
|
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Messenger\Exception\MessageDecodingFailedException;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Tests\Fixtures\DummyMessage;
|
use Symfony\Component\Messenger\Bridge\Redis\Tests\Fixtures\DummyMessage;
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
|
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Transport\RedisReceiver;
|
use Symfony\Component\Messenger\Bridge\Redis\Transport\RedisReceiver;
|
||||||
|
use Symfony\Component\Messenger\Exception\MessageDecodingFailedException;
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\PhpSerializer;
|
use Symfony\Component\Messenger\Transport\Serialization\PhpSerializer;
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
|
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
|
||||||
use Symfony\Component\Serializer as SerializerComponent;
|
use Symfony\Component\Serializer as SerializerComponent;
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
|
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Messenger\Envelope;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Tests\Fixtures\DummyMessage;
|
use Symfony\Component\Messenger\Bridge\Redis\Tests\Fixtures\DummyMessage;
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
|
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Transport\RedisSender;
|
use Symfony\Component\Messenger\Bridge\Redis\Transport\RedisSender;
|
||||||
|
use Symfony\Component\Messenger\Envelope;
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
||||||
|
|
||||||
class RedisSenderTest extends TestCase
|
class RedisSenderTest extends TestCase
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
|
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Messenger\Envelope;
|
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Tests\Fixtures\DummyMessage;
|
use Symfony\Component\Messenger\Bridge\Redis\Tests\Fixtures\DummyMessage;
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
|
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
|
||||||
use Symfony\Component\Messenger\Bridge\Redis\Transport\RedisTransport;
|
use Symfony\Component\Messenger\Bridge\Redis\Transport\RedisTransport;
|
||||||
|
use Symfony\Component\Messenger\Envelope;
|
||||||
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
|
||||||
use Symfony\Component\Messenger\Transport\TransportInterface;
|
use Symfony\Component\Messenger\Transport\TransportInterface;
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Messenger\Middleware;
|
namespace Symfony\Component\Messenger\Middleware;
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceivedStamp;
|
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceivedStamp;
|
||||||
use Symfony\Component\Messenger\Envelope;
|
use Symfony\Component\Messenger\Envelope;
|
||||||
use Symfony\Component\Messenger\Exception\RejectRedeliveredMessageException;
|
use Symfony\Component\Messenger\Exception\RejectRedeliveredMessageException;
|
||||||
|
@ -17,6 +17,7 @@ use Symfony\Component\DependencyInjection\Compiler\ResolveClassPass;
|
|||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
use Symfony\Component\DependencyInjection\ServiceLocator;
|
use Symfony\Component\DependencyInjection\ServiceLocator;
|
||||||
|
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceiver;
|
||||||
use Symfony\Component\Messenger\Command\ConsumeMessagesCommand;
|
use Symfony\Component\Messenger\Command\ConsumeMessagesCommand;
|
||||||
use Symfony\Component\Messenger\Command\DebugCommand;
|
use Symfony\Component\Messenger\Command\DebugCommand;
|
||||||
use Symfony\Component\Messenger\Command\SetupTransportsCommand;
|
use Symfony\Component\Messenger\Command\SetupTransportsCommand;
|
||||||
@ -38,7 +39,6 @@ use Symfony\Component\Messenger\Tests\Fixtures\DummyQueryHandler;
|
|||||||
use Symfony\Component\Messenger\Tests\Fixtures\MultipleBusesMessage;
|
use Symfony\Component\Messenger\Tests\Fixtures\MultipleBusesMessage;
|
||||||
use Symfony\Component\Messenger\Tests\Fixtures\MultipleBusesMessageHandler;
|
use Symfony\Component\Messenger\Tests\Fixtures\MultipleBusesMessageHandler;
|
||||||
use Symfony\Component\Messenger\Tests\Fixtures\SecondMessage;
|
use Symfony\Component\Messenger\Tests\Fixtures\SecondMessage;
|
||||||
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceiver;
|
|
||||||
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
|
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
|
||||||
|
|
||||||
class MessengerPassTest extends TestCase
|
class MessengerPassTest extends TestCase
|
||||||
|
@ -25,4 +25,3 @@ if (false) {
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,11 +39,11 @@ class TransportFactory implements TransportFactoryInterface
|
|||||||
|
|
||||||
// Help the user to select Symfony packages based on protocol.
|
// Help the user to select Symfony packages based on protocol.
|
||||||
$packageSuggestion = '';
|
$packageSuggestion = '';
|
||||||
if (substr($dsn, 0, 7) === 'amqp://') {
|
if ('amqp://' === substr($dsn, 0, 7)) {
|
||||||
$packageSuggestion = ' Run "composer require symfony/amqp-messenger" to install AMQP transport.';
|
$packageSuggestion = ' Run "composer require symfony/amqp-messenger" to install AMQP transport.';
|
||||||
} elseif (substr($dsn, 0, 11) === 'doctrine://') {
|
} elseif ('doctrine://' === substr($dsn, 0, 11)) {
|
||||||
$packageSuggestion = ' Run "composer require symfony/doctrine-messenger" to install Doctrine transport.';
|
$packageSuggestion = ' Run "composer require symfony/doctrine-messenger" to install Doctrine transport.';
|
||||||
} elseif (substr($dsn, 0, 8) === 'redis://') {
|
} elseif ('redis://' === substr($dsn, 0, 8)) {
|
||||||
$packageSuggestion = ' Run "composer require symfony/redis-messenger" to install Redis transport.';
|
$packageSuggestion = ' Run "composer require symfony/redis-messenger" to install Redis transport.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ EODUMP;
|
|||||||
$producer->addBrokers($this->broker);
|
$producer->addBrokers($this->broker);
|
||||||
|
|
||||||
$topic = $producer->newTopic('test');
|
$topic = $producer->newTopic('test');
|
||||||
$topic->produce(\RD_KAFKA_PARTITION_UA, 0, '{}');
|
$topic->produce(RD_KAFKA_PARTITION_UA, 0, '{}');
|
||||||
|
|
||||||
$expectedDump = <<<EODUMP
|
$expectedDump = <<<EODUMP
|
||||||
RdKafka\ProducerTopic {
|
RdKafka\ProducerTopic {
|
||||||
|
Reference in New Issue
Block a user