Skip to content

Commit c7a77e3

Browse files
committed
[Messenger] Update the namespace of InMemoryTransport class
1 parent 8d16308 commit c7a77e3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

messenger.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ during a request::
16811681
namespace App\Tests\Controller;
16821682

16831683
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1684-
use Symfony\Component\Messenger\Transport\InMemoryTransport;
1684+
use Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport;
16851685

16861686
class DefaultControllerTest extends WebTestCase
16871687
{
@@ -1698,6 +1698,12 @@ during a request::
16981698
}
16991699
}
17001700

1701+
.. versionadded:: 6.3
1702+
1703+
The namespace of the ``InMemoryTransport`` class changed in Symfony 6.3 from
1704+
``Symfony\Component\Messenger\Transport\InMemoryTransport`` to
1705+
``Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport``.
1706+
17011707
The transport has a number of options:
17021708

17031709
``serialize`` (boolean, default: ``false``)

messenger/custom-transport.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Here is a simplified example of a database transport::
126126

127127
The implementation above is not runnable code but illustrates how a
128128
:class:`Symfony\\Component\\Messenger\\Transport\\TransportInterface` could
129-
be implemented. For real implementations see :class:`Symfony\\Component\\Messenger\\Transport\\InMemoryTransport`
129+
be implemented. For real implementations see :class:`Symfony\\Component\\Messenger\\Transport\\InMemory\\InMemoryTransport`
130130
and :class:`Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineReceiver`.
131131

132132
Register your Factory

0 commit comments

Comments
 (0)