Php 使用FOSRestBundle时routing.yml导入
我遵循这里()中关于使用FOSRestBundle的教程 设置路由时,我收到错误信息:Php 使用FOSRestBundle时routing.yml导入,php,fosrestbundle,Php,Fosrestbundle,我遵循这里()中关于使用FOSRestBundle的教程 设置路由时,我收到错误信息: Cannot import resource "D:\xampp\htdocs\SymRestTestApp\src\Per\RestBundle/Resources/config/routing.yml" from "D:/xampp/htdocs/SymRestTestApp/app/config\routing.yml". 我的应用程序/config/routing.yml per_rest:
Cannot import resource "D:\xampp\htdocs\SymRestTestApp\src\Per\RestBundle/Resources/config/routing.yml" from "D:/xampp/htdocs/SymRestTestApp/app/config\routing.yml".
我的应用程序/config/routing.yml
per_rest:
resource: "@PerRestBundle/Controller"
type: annotation
prefix: /
per:
type: rest
resource: "@PerRestBundle/Resources/config/routing.yml"
My Per/RestBundle/Resources/config/routing.yml:
organisation:
type: rest
resource: Per\RestBundle\Controller\OrganisationController
user:
type: rest
parent: organisation
resource: Per\RestBundle\Controller\UserController
有人经历过这个问题吗?如何修复此错误?我刚刚将提交推送到存储库,该存储库应该可以修复此问题。见:
这是因为FOSRestBundle现在要求您在控制器中实现ClassResourceInterface以使用隐式路由。请参阅:是的,我缺少ClassResourceInterface文档链接已断开,Nicholas Janel。文件已移至此处: