Symfony: multiple controllers in one bundle

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.