This is just a convention. You can use these suffixes, but you can also do without it.
If you
public function somethingAction()
:
index:
path: /path_for_something
defaults: { _controller: AppBundle:Index:something }
_controller
, . , AppBundle:Index:something
:
- : AppBundle
- : IndexController
- : somethingAction
. Symfony , . .
, , action
, , symfony2 / , . .
, :
index:
path: /something
defaults: { _controller: AppBundle\Controller\IndexController::indexAction }
, :
, .