1

FOSRestBundleの使用については、ここ(http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html )のチュートリアルに従います。

ルートを設定すると、エラーが発生します:

Cannot import resource "D:\xampp\htdocs\SymRestTestApp\src\Per\RestBundle/Resources/config/routing.yml" from "D:/xampp/htdocs/SymRestTestApp/app/config\routing.yml". 

私のapp/config / routing.yml

per_rest:
    resource: "@PerRestBundle/Controller"
    type: annotation
    prefix: /

per:
    type: rest
    resource: "@PerRestBundle/Resources/config/routing.yml"

私のPer/RestBundle / Resources / config / routing.yml:

organisation:
    type: rest
    resource: Per\RestBundle\Controller\OrganisationController

user:
    type: rest
    parent: organisation
    resource: Per\RestBundle\Controller\UserController

誰かがこの問題を経験しますか?このエラーを修正するにはどうすればよいですか?

4

1 に答える 1