2
基於此示例:http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html父屬性是不允許的
我試圖在FOSRestBundle實現中使用父項。但問題在於,似乎父屬性不再被識別或不被支持。有任何建議嗎?
bla_rest_api_Location:
type: rest
parent: bla_rest_api_User
resource: Bla\RestUserBundle\Controller\LocationController
例外:
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "C:\xampp\htdocs\EntisServer\src\VSmart\RestUserBund
le/Resources/config/routing.yml" from "C:/xampp/htdocs/EntisServer/app/conf
ig\routing.yml". (The routing file "C:\xampp\htdocs\EntisServer\src\VSmart\
RestUserBundle/Resources/config/routing_generated.yml" contains unsupported
keys for "v_smart_rest_api_Location": "parent". Expected one of: "resource
", "type", "prefix", "pattern", "path", "host", "schemes", "methods", "defa
ults", "requirements", "options", "condition".)
Dit將'type'休息添加到主include,但必須在路由之間進行。 –