如何在 Symfony3 中使用 Grouped Use 语句?

How to use Grouped Use statements with Symfony3?

我的机器上安装了 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").

我是不是漏掉了什么?

提前致谢。

我发现错误是与注释有关的错误,而不是与孔框架有关的错误。因此,拆分注释的使用语句效果很好。