您是否可能忘了为此注释添加“ use”语句?

时间:2018-08-11 14:20:39

标签: symfony symfony-forms symfony4

处理异常时引发的异常

  

(Symfony \ Component \ Config \ Exception \ FileLoaderLoadException:   [语义错误]方法中的注释“ @Roote”   App \ Controller \ BlogController :: show()从未导入。 Did you maybe forget to add a "use" statement for this annotation? in   C:\ Users \ younes \ Desktop \ demo \ config / routes ../../ src / Controller /   (这是从   “ C:\ Users \ younes \ Desktop \ demo \ config / routes / annotations.yaml”)。使   确保已安装并启用注释。)

the image link down

1 个答案:

答案 0 :(得分:1)

更改注释:

@Roote

收件人:

@Route