8000 minor #51374 [Messenger] Fix PHPDoc template for `TransportFactoryInt… · symfony/symfony@2bac801 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bac801

Browse files
committed
minor #51374 [Messenger] Fix PHPDoc template for TransportFactoryInterface (Ferror)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Messenger] Fix PHPDoc template for `TransportFactoryInterface` Improved a little bit phpdocs when dealing with Transport & Transport Factory Interface. Commits ------- da34d05 [Messenger] Fix PHPDoc template for `TransportFactoryInterface`
2 parents 11adee9 + da34d05 commit 2bac801

File tree

10 files changed

+24
-0
lines changed

10 files changed

+24
-0
lines changed

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/TransportFactory.php

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

1717
/**
1818
* @author Samuel Roze <samuel.roze@gmail.com>
19+
*
20+
* @implements TransportFactoryInterface<TransportInterface>
1921
*/
2022
class TransportFactory implements TransportFactoryInterface
2123
{

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