Кэш Symfony: очистить семантическую ошибку с аннотацией @Method

на моей производственной сборке, когда я запускаю:

php app/console cache:clear --env=prod --no-debug

Симофные броски

[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "<path>/App/AppBundle/Controller/DefaultController.php" from "<path>/App/AppBundle/Resources/config/routing.yml". ([Semantical Error] The class "Method" 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 "Method". If it is indeed no annotation, then you need to add @IgnoreAnnotation("Method") to the _class_ doc comment of class @Sensio\Bundle\FrameworkExtraBundle\Configuration\Method.)

[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The class "Method" 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 "Method". If it is indeed no annotation, then you need to add @IgnoreAnnotation("Method") to the _class_ doc comment of class @Sensio\Bundle\FrameworkExtraBundle\Configuration\Method.

Не уверен, почему на моем локальном компьютере он работает нормально. И другие проекты, использующие аннотации Symfony, работают нормально.

Версии пакетов: http://pastebin.com/71ZNrwSc

0

Решение

Это было решено с

"sensio/framework-extra-bundle": "dev-master",

То же, что и этот вопрос
Symfony2 ParamConverter не связан с @Annotation (кеш должен очищаться после любого изменения файла)

Связанная проблема: https://github.com/symfony/symfony/issues/7283

0

Другие решения

Других решений пока нет …