name_prefix does not work.
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!
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?).
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!
can you work on a PR for this?