Skip to content

[Messenger] How to Create Your own Messenger Transport seems outdated #11972

Closed
@freiondrej

Description

@freiondrej

The code snippet

class YourTransport implements TransportInterface
{
    public function send(Envelope $envelope): Envelope
    {
        // ...
    }

    public function receive(callable $handler): void
    {
        // ...
    }

    public function stop(): void
    {
        // ...
    }
}

describes nonexistent methods receive() and stop(); the interface has methods get(), ack(), reject() and send() (as of symfony/messenger:4.3.2).

I want to confirm whether the docs page is outdated, if so, I can send a PR with the correct methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions