Skip to content

[Messenger] Update the namespace of InMemoryTransport class #17574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ during a request::
namespace App\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\Messenger\Transport\InMemoryTransport;
use Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport;

class DefaultControllerTest extends WebTestCase
{
Expand All @@ -1698,6 +1698,12 @@ during a request::
}
}

.. versionadded:: 6.3

The namespace of the ``InMemoryTransport`` class changed in Symfony 6.3 from
``Symfony\Component\Messenger\Transport\InMemoryTransport`` to
``Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport``.

The transport has a number of options:

``serialize`` (boolean, default: ``false``)
Expand Down
2 changes: 1 addition & 1 deletion messenger/custom-transport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Here is a simplified example of a database transport::

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

Register your Factory
Expand Down