JMSDiExtraBundle icon indicating copy to clipboard operation
JMSDiExtraBundle copied to clipboard

Honor bundles configuration in controller injectors warmer

Open gremo opened this issue 7 years ago • 2 comments

Controller injectors warmer does not honor the locations configuration.

jms_di_extra:
    locations:
        all_bundles: false
        bundles: [AppBundle]
        directories: ["%kernel.root_dir%/../src"]

All directories are scanned (see this line) and this may causes issues with annotations, see SonataUserBundle #686 and SonataClassificationBundle #258.

May be the solution is injecting the locations configuration and filter out the bundles.

gremo avatar Jan 26 '17 23:01 gremo

any update?

AlmogBaku avatar Jul 07 '17 10:07 AlmogBaku

Ping @schmittjoh this problem also affect many Sonata project bundles.

gremo avatar Sep 14 '17 17:09 gremo