Description
Expected behavior
Resolving parameters after all Bundle Extensions have been loaded
Actual behavior
It wants to resolve them before the Extensions have been loaded
Steps to reproduce
Install CoreShop with Pimcore 11, when building the container, you get following issue:
You have requested a non-existent parameter "coreshop.model.user.class"
Reason for that is: CoreShop has a configuration for the pimcore security encoders like:
pimcore:
security:
encoder_factories:
'%coreshop.model.user.class%': coreshop.security.user.password_encoder_factory
CoreShop registers these parameters in another Dependency Injection Extension that is not loaded when Pimcore calls Kernel::registerContainerConfiguration
.
This is a chicken egg sort of Problem. The idea is to, based on configuration, load settings from Config Files. I don't have a real solution for this. Although I see it is a major Problem, no Pimcore config can depend on Parameters defined in other Bundle Extensions or Compiler Passes.