10000 [Pimcore 11]: Pimcore Kernel registerContainerConfiguration · Issue #14929 · pimcore/pimcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Pimcore 11]: Pimcore Kernel registerContainerConfiguration #14929
Closed
@dpfaffenbauer

Description

@dpfaffenbauer

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0