diff --git a/components/messenger.rst b/components/messenger.rst index ba7acf6da49..fa4b4a7d81b 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -163,6 +163,7 @@ Instead of dealing directly with the messages in the middleware you receive the Hence you can inspect the envelope content and its stamps, or add any:: use App\Message\Stamp\AnotherStamp; + use Symfony\Component\Messenger\Envelope; use Symfony\Component\Messenger\Middleware\MiddlewareInterface; use Symfony\Component\Messenger\Middleware\StackInterface; use Symfony\Component\Messenger\Stamp\ReceivedStamp;