FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

name_prefix does not work.

Open log0 opened this issue 14 years ago • 3 comments

Dear all,

I am trying to generate from the type rest but since I have multiple controllers that I want to have support, they all clashed together. When I used the name_prefix as suggested:

AcmeStoreBundle_Rest_SalesOrders: type: rest prefix: /sales_orders name_prefix: /sales_orders resource: Acme\StoreBundle\Controller\SalesOrderController

I got this exception:

[InvalidArgumentException]
Yaml routing loader does not support given key: "name_prefix". Expected one of the (type, resource, prefix, pattern, options, defaults, requirements).

What's wrong? FOSRestBundle at origin/0.6 .

Thanks!

log0 avatar Mar 14 '12 08:03 log0

I found a possible duplicate here : https://github.com/FriendsOfSymfony/FOSRestBundle/issues/129

I am digging into it. It is odd the usage is unexpected... (for those who haven't understood... we should minimize errors, right?).

log0 avatar Mar 14 '12 09:03 log0

It's a duplicate, however I really suggest highlighting this up in the wiki / docs. If the author thinks no, feel free to close this. Thanks!

log0 avatar Mar 14 '12 09:03 log0

can you work on a PR for this?

lsmith77 avatar Mar 19 '12 15:03 lsmith77