-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vendor classes loaded but they shouldn't #248
Comments
This happening here: Cache warmer try to find all controllers in all bundles. After this it create injector for every controller class, including controllers with |
Good spot @covex-nn ! Thank you. So there is at least a possible workaround by adding the affected controllers to
|
I think i have found a problem. And it is not possible to ignore @apidoc annotation right now: Also i have found PR in |
Hi,
not sure if this is a bug or a configuration problem on my side.
When using SonataUserBundle and JMSDiExtraBundle, Sonata's code triggers an annotation exception (because of a missing optional dependency only needed if the api controllers are used).
The routing for those api controllers is added optionally by SonataUserBundle, depending on if some other bundles are available. But SonataUserBundle is definitely not loading the api controllers by itself in this case.
Somehow JMSDiExtraBundle seems to cause their api controllers to load, despite I have configured:
Is there anything else to configure so that DiExtraBundle does not cause loading other vendor classes?
I have set up a minimal project here for demonstrating the issue.
The text was updated successfully, but these errors were encountered: