【发布时间】:2016-12-18 22:05:44
【问题描述】:
我的机器上安装了 PHP 7.1,我正在使用 Symfony 开发一个应用程序。当我尝试将同一命名空间中的 use 语句分组时,我收到一个错误,说它们从未被声明过。
我的use:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\{
Route, Method
};
浏览器中显示的错误:
[Semantical Error] The annotation "@Route" in method AppBundle\Controller\EpisodiosController::listarAction() was never imported. Did you maybe forget to add a "use" statement for this annotation? in /home/vinicius/Documentos/controle-de-series/src/AppBundle/Controller/ (which is being imported from "/home/vinicius/Documentos/controle-de-series/app/config/routing.yml").
我错过了什么吗?
提前致谢。
【问题讨论】: