JMSDiExtraBundle
JMSDiExtraBundle copied to clipboard
Honor bundles configuration in controller injectors warmer
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.
any update?
Ping @schmittjoh this problem also affect many Sonata project bundles.