Skip to content
Advertisement

Symfony 3.4 – Make sure annotations are installed and enabled

I am trying to implement a forgot password feature to an existing Symfony app. So fare I have the password request done. The user puts in it’s email and an email is sent with a token. The return URL looks like this:

/intranet/password-change/f74eab6dca8b5ed6fd46e7893221254b655f94799589e0b83c

Normally a forme should show but when i visite that URL i get this message:

Class AppControllerResettingController does not exist in /public_html/intranet/src/AppBundle/Controller/ (which is being imported from “/public_html/intranet/app/config/routing.yml”). Make sure annotations are installed and enabled.

I don’t get it … I have the controller set up at the right place and the route should be taken care of by the annotations.

My routing file:

JavaScript

as for my resseting class it’s in /public_html/intranet/src/AppBundle/Controller

And looks like this:

JavaScript

I am new to symfony so I might be missing something obvious … I just don’t see it lol thx in advance

Advertisement

Answer

JUst replace App by AppBundle

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement