8000 [Messenger] - phpdoc template for TransportFactoryInterface · symfony/symfony@c738259 · GitHub
[go: up one dir, main page]

Skip to content

Commit c738259

Browse files
committed
[Messenger] - phpdoc template for TransportFactoryInterface
1 parent 6141656 commit c738259

File tree

10 files changed

+23
-1
lines changed

10 files changed

+23
-1
lines changed

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function reset()
9393
/**
9494
* @return MessageCountAwareInterface&ReceiverInterface
9595
*/
96-
private function getReceiver(): ReceiverInterface
96+
private function getReceiver()
9797
{
9898
return $this->receiver ??= new AmazonSqsReceiver($this->connection, $this->serializer);
9999
}

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* @author Jérémy Derussé <jeremy@derusse.com>
21+
*
22+
* @implements TransportFactoryInterface<AmazonSqsTransport>
2123
*/
2224
class AmazonSqsTransportFactory implements TransportFactoryInterface
2325
{

src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author Samuel Roze <samuel.roze@gmail.com>
20+
*
21+
* @implements TransportFactoryInterface<AmqpTransport>
2022
*/
2123
class AmqpTransportFactory implements TransportFactoryInterface
2224
{

src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author Antonio Pauletich <antonio.pauletich95@gmail.com>
20+
*
21+
* @implements TransportFactoryInterface<BeanstalkdTransport>
2022
*/
2123
class BeanstalkdTransportFactory implements TransportFactoryInterface
2224
{

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/DoctrineTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
/**
2222
* @author Vincent Touzet <vincent.touzet@gmail.com>
23+
*
24+
* @implements TransportFactoryInterface<DoctrineTransport>
2325
*/
2426
class DoctrineTransportFactory implements TransportFactoryInterface
2527
{

src/Symfony/Component/Messenger/Bridge/Redis/Transport/RedisTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
/**
1919
* @author Alexander Schranz <alexander@suluio>
2020
* @author Antoine Bluchet <soyuka@gmail.com>
21+
*
22+
* @implements TransportFactoryInterface<RedisTransport>
2123
*/
2224
class RedisTransportFactory implements TransportFactoryInterface
2325
{

src/Symfony/Component/Messenger/Transport/InMemory/InMemoryTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* @author Gary PEGEOT <garypegeot@gmail.com>
21+
*
22+
* @implements TransportFactoryInterface<InMemoryTransport>
2123
*/
2224
class InMemoryTransportFactory implements TransportFactoryInterface, ResetInterface
2325
{

src/Symfony/Component/Messenger/Transport/Sync/SyncTransportFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* @author Ryan Weaver <ryan@symfonycasts.com>
21+
*
22+
* @implements TransportFactoryInterface<SyncTransport>
2123
*/
2224
class SyncTransportFactory implements TransportFactoryInterface
2325
{

src/Symfony/Component/Messenger/Transport/TransportFactoryInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@
1717
* Creates a Messenger transport.
1818
*
1919
* @author Samuel Roze <samuel.roze@gmail.com>
20+
*
21+
* @template-covariant TTransport of TransportInterface
2022
*/
2123
interface TransportFactoryInterface
2224
{
25+
/**
26+
* @return TTransport
27+
*/
2328
public function createTransport(#[\SensitiveParameter] string $dsn, array $options, SerializerInterface $serializer): TransportInterface;
2429

2530
public function supports(#[\SensitiveParameter] string $dsn, array $options): bool;

src/Symfony/Component/Scheduler/Messenger/SchedulerTransportFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Symfony\Component\Scheduler\Generator\MessageGenerator;
2121
use Symfony\Component\Scheduler\ScheduleProviderInterface;
2222

23+
/**
24+
* @implements TransportFactoryInterface<SchedulerTransport>
25+
*/
2326
class SchedulerTransportFactory implements TransportFactoryInterface
2427
{
2528
public function __construct(

0 commit comments

Comments
 (0)
0