// MySomethingController.phpFOSRestBundle dodaje 'S' Get URL
// look no s
public function getSomethingAction($args)
{
...
}
// routing.yml
my_something:
type: rest
resource: Blah\Bundle\BlahBundle\Controller\MySomethingController
trwania:
php app/console router:debug
wyjściowa:
[router] Current routes
Name Method Pattern
get_something GET /somethings/{args}.{_format}
Dlaczego trasa "cosbings" (liczba mnoga z "s") zamiast "coś"?
Czy to ustawienie mam gdzieś? czy jest to oczekiwane?
Dokumentacja powiedzieć, że jest poprawna: https : //github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/5-automatic-route-generation_single-restful-controller.md (Sprawdź 'metody getUserAction'.) – eagleoneraptor
@eagleoneraptor one skonfigurowane do używaj użytkowników z 's' # app/config/routing.yml użytkowników, chyba że możesz wskazać, gdzie to oznacza to –