DamienHarper / auditor

auditor, the missing audit log library
MIT License
164 stars 53 forks source link

No routes after updating to Symfony 6.4 #202

Closed lcpaf closed 2 months ago

lcpaf commented 6 months ago

I upgraded my app to Symfony 6.4 (from 5.4), and out of a student I'm not able to register my audit routes.

#routes/dh_auditor.yaml
dh_auditor:
    resource: "@DHAuditorBundle/Controller/"
    type: auditor

I'm using attributes to declare my app routes, and I already tried to change the type to attribute as well, but no luck.

What is that I'm doing wrong?

mvhirsch commented 2 months ago

Without knowing how your Symfony application is loading routes, it's hard to understand the issue.

Are you using the MicroKernelTrait? Is your Kernel loading routes from config/routes/*? Is your file located at config/routes/dh_auditor.yaml?