willdurand / BazingaHateoasBundle

Integration of the Hateoas library into Symfony.
MIT License
294 stars 59 forks source link

Symfony 7: Service "annotation_reader" is no longer available #108

Closed W0rma closed 2 weeks ago

W0rma commented 10 months ago

I get the following error when using this bundle with symfony 7 and calling bin/console cache:clear:

The service "hateoas.configuration.metadata.annotation_driver" has a dependency on a non-existent service "annotation_reader".

This is because the service "annotation_reader" has been removed in symfony/framework-bundle:7.0.

My project doesn't use the annotations defined in https://github.com/willdurand/Hateoas/tree/master/src/Configuration/Annotation at all.

I was able to work around this issue by defining the service "annotation_reader" in my project manually.

It would be nice if annotations could be make optional in this bundle.

Maybe https://github.com/willdurand/BazingaHateoasBundle/pull/104 can help to fix this issue by adding support for native attributes.

loic425 commented 6 months ago

Any new about this issue? It blocks sf7 migrations on Sylius.

he-lau commented 4 months ago

I have the same error, any idea to correct it please ?

gwawrzak commented 2 weeks ago

Do you have any update on this, please? I can help with some code if needed, please let me know

goetas commented 2 weeks ago

I have merged the lib part, now https://github.com/willdurand/BazingaHateoasBundle/pull/104 should be unblocked, lets wait for the rebase

goetas commented 2 weeks ago

fixed in https://github.com/willdurand/BazingaHateoasBundle/pull/104