You have requested a non-existent parameter "cmf_media.persistence.phpcr.image.class".
when compiling the container in an application that also contains the CmfCreateBundle. The parameter references are resolved before the parameters are created from CmfMediaBundle's own semantic config.
I haven't dived far down this rabbit hole, but it looks to me as if the parameter references are being resolved too early when calling prependExtensionConfig() on the container builder (in which case, this would be an issue in the Symfony DependencyInjection component).
This PR short-circuits the issue by using the config from the CmfMediaBundle directly, rather than passing parameter references. It solves my error, but please feed back if you think this is an incorrect approach.
I've experienced the error:
You have requested a non-existent parameter "cmf_media.persistence.phpcr.image.class".
when compiling the container in an application that also contains the CmfCreateBundle. The parameter references are resolved before the parameters are created from CmfMediaBundle's own semantic config.
I haven't dived far down this rabbit hole, but it looks to me as if the parameter references are being resolved too early when calling
prependExtensionConfig()
on the container builder (in which case, this would be an issue in the Symfony DependencyInjection component).This PR short-circuits the issue by using the config from the CmfMediaBundle directly, rather than passing parameter references. It solves my error, but please feed back if you think this is an incorrect approach.