I have a bundle named ItemBundle and since an item has categories, I wanted a second controller called CategoryController within that bundle. To make symfony realize that this new controller exists, it seems to be necessary to mention it in the routing.yml …
_backend_item_category:
resource: “@PATHItemBundle/Controller/CategoryController.php”
type: annotation
prefix: /item/category