You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within 2.2.0 I have an issue with the ParamConverter annotations.
The actual annotation itself seems fine, but each time I make a change in the Controller in question, it fails to load and I must clear the cache (even in dev).
The change doesn't even have to be code, even comment and whitespace changes trigger this problem.
The error it reports is:
Cannot import resource "/home/sites/MySite/src/Acme/Bundle/MyBundle/Controller/" from "/home/sites/MySite/app/config/routing.yml".FileLoaderLoadException: Cannot import resource "/home/sites/MySite/src/Acme/Bundle/MyBundle/Controller/" from "/home/sites/MySite/app/config/routing.yml"
AnnotationException: [Semantical Error] The class "Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter" is not annotated with @Annotation. Are you sure this class can be used as annotation? If so, then you need to add @Annotation to the _class_ doc comment of "Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter". If it is indeed no annotation, then you need to add @IgnoreAnnotation("ParamConverter") to the _class_ doc comment of method Acme\Bundle\MyBundle\Controller\DefaultController::viewAction().
Hi @stof
Yes, of course I have done that, and for my projects it's no issue.
I was more thinking about users that are installing 2.2.0 and will hit this problem every time, as the composer in the standard-edition is still referencing the broken FrameworkExtraBundle version.
Hi,
Within 2.2.0 I have an issue with the ParamConverter annotations.
The actual annotation itself seems fine, but each time I make a change in the Controller in question, it fails to load and I must clear the cache (even in dev).
The change doesn't even have to be code, even comment and whitespace changes trigger this problem.
The error it reports is:
Others also confirm this issue;
http://stackoverflow.com/questions/15247170/symfony2-paramconverter-not-associated-with-annotation-cache-must-be-cleared-a
The text was updated successfully, but these errors were encountered: