FOSRestBundle добавляет 'S' в URL-адрес получения

// MySomethingController.php

// look no s
public function getSomethingAction($args)
{
    ...
}

// routing.yml

my_something:
    type:     rest
    resource: Blah\Bundle\BlahBundle\Controller\MySomethingController

running:

php app/console router:debug

Вывод:

[router] Current routes
Name                Method     Pattern
get_something       GET        /somethings/{args}.{_format}

Почему маршрут «что-то» (во множественном числе с буквой «s») вместо «что-то»?

Где-то у меня есть такая настройка? или это ожидаемо?

5
задан Phill Pafford 6 June 2012 в 20:58
поделиться