1
私は自分のマシンにPHP 7.1をインストールしており、私はSymfonyでアプリケーションを開発しています。私が同じ名前空間から自分のuseステートメントをグループ化しようとすると、宣言されていないというエラーが出ました。Symfony3でGrouped Useステートメントを使用するには?
マイuse
:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\{
Route, Method
};
エラーがブラウザをint示す:
[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").
は、私が何かを見逃していましたか?
ありがとうございます。