name_prefix does not work. #203

Closed
log0 opened this Issue Mar 14, 2012 · 3 comments

Comments

Projects
None yet
4 participants

log0 commented Mar 14, 2012

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 commented Mar 14, 2012

I found a possible duplicate here : #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 commented Mar 14, 2012

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!

everzet was assigned Mar 14, 2012

Owner

lsmith77 commented Mar 19, 2012

can you work on a PR for this?

stof closed this May 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment