Skip to content

It is impossible to import all routes from bundle controllers with the new API (AbstractBundle) #51732

Answered by stof
tebaly asked this question in Q&A
Discussion options

You must be logged in to vote

AbstractBundle assumes the modern bundle structure by default (when you don't override getPath()), so it would look like @AcmeBundle/src/Controller/ for such bundles.
And if your bundle does not follow the modern structure, you need to override the getPath method to make it return the right path

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by tebaly
Comment options

You must be logged in to vote
1 reply
@stof
Comment options

stof Sep 24, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #51731 on September 24, 2023 13:46.