// 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») вместо «что-то»?
Где-то у меня есть такая настройка? или это ожидаемо?