JMSDiExtraBundle icon indicating copy to clipboard operation
JMSDiExtraBundle copied to clipboard

Bundle controller affected by DIExtraBundle

Open shieldo opened this issue 12 years ago • 3 comments

I have a controller class in a bundle that has explicitly not been included as one of the listed bundles DIExtraBundle should parse, and calls to this controller break because a proxy class (created by DIExtraBundle) is used that does not know about the controller's constructor arguments. Why would this bundle be parsed when I haven't specified that this should happen?

Current config outline:

jms_di_extra:
    locations:
        all_bundles: false
        bundles:
            - 'SomeOtherBundle'

Specifically, the bundle in question in this instance is actually the SonataDoctrinePHPCRAdminBundle.

Any pointers?

shieldo avatar Aug 01 '13 10:08 shieldo

As we can see from ControllerInjectorsWarmer - all controller files processed.

Koc avatar Feb 05 '14 19:02 Koc

Is there any chance to solve this issue? It is impossible to use constructor arguments for controllers (when we're using custom service as a controller) right now.

Crozin avatar Aug 21 '14 11:08 Crozin

+1 on solving this issue. Having the exact same problem as in #124

oscargala avatar Sep 02 '14 15:09 oscargala