jolicode / elastically

🔍 JoliCode's Elastica wrapper to bootstrap Elasticsearch PHP integrations
248 stars 37 forks source link

Symfony 6.2 deprecation #126

Closed jmsche closed 1 year ago

jmsche commented 1 year ago

Hi,

Since I upgraded a project to Symfony 6.2 I have this deprecation:

Since symfony/messenger 6.2: Implementing "Symfony\Component\Messenger\Handler\MessageHandlerInterface" is deprecated, use the "Symfony\Component\Messenger\Attribute\AsMessageHandler" attribute instead. 

From this class: https://github.com/jolicode/elastically/blob/f918cd0465508d456cf4314a9ce0e278efc3ff2b/src/Messenger/IndexationRequestHandler.php

lyrixx commented 1 year ago

Hello,

I just checked and

So we need to:

damienalexandre commented 1 year ago

The first item in this list is done.

Can someone provide the pull request to use the new attribute?

Thanks!

jmsche commented 1 year ago

I'm wondering: is the attribute even necessary if the handler is tagged?