stof / StofDoctrineExtensionsBundle

Integration bundle for DoctrineExtensions by l3pp4rd in Symfony
https://symfony.com/bundles/StofDoctrineExtensionsBundle/current/index.html
MIT License
1.89k stars 379 forks source link

Allow the bundle to work without the annotation reader #459

Closed jmsche closed 1 year ago

jmsche commented 1 year ago

Describe the bug With Symfony 6.4 we get this deprecation:

Since symfony/framework-bundle 6.4: Enabling the integration of Doctrine annotations is deprecated. Set the "framework.annotations.enabled" config option to false.

However, disabling the annotation reader produces this exception (I guess there would be more):

The service "stof_doctrine_extensions.listener.timestampable" has a dependency on a non-existent service "annotation_reader".

To Reproduce

Expected behavior The bundle should be able to work without the annotation reader enabled.

Additional context N/A

bartholdbos commented 1 year ago

@stof Could you maybe release this change, I also ran into this exception when trying to disable the annotations reader in the symfony framework config

stof commented 1 year ago

@bartholdbos I tagged the 1.9.0 release

bartholdbos commented 1 year ago

Thank you! :+1: