-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
"You have requested a synthetic service ("request")." after updating from 2.8.9 to 2.8.10 #19840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@briancoit thanks for reporting this issue. Indeed it looks the same problem as #19825. Could you please investigate a bit further the origin of the error to help us discover its cause? In some of the lines of the |
@javiereguiluz here is error point on my project (cmf media bundle). /**
* Updates the 'request' service.
*/
protected function synchronizeRequestService()
{
if ($this->initialized('cmf_media.persistence.phpcr.subscriber.imagine_cache')) {
$this->get('cmf_media.persistence.phpcr.subscriber.imagine_cache')->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}
if ($this->initialized('cmf_routing.dynamic_router')) {
$this->get('cmf_routing.dynamic_router')->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}
} <service id="cmf_media.persistence.phpcr.subscriber.imagine_cache" class="%cmf_media.persistence.phpcr.subscriber.imagine_cache.class%">
<tag name="doctrine_phpcr.event_subscriber" />
<argument type="service" id="cmf_media.persistence.phpcr.manager" />
<argument type="service" id="liip_imagine.cache.manager" />
<argument>%cmf_media.imagine.all_filters%</argument>
<call method="setRequest"><argument type="service" id="request" on-invalid="null" strict="false"/></call>
</service> |
I have the same issue since updating to
Seems to be coming from this bundle that I use: https://github.com/craue/CraueFormFlowBundle/blob/2.1.9/Resources/config/form_flow.xml#L28 Method /**
* Updates the 'request' service.
*/
protected function synchronizeRequestService()
{
if ($this->initialized('craue.form.flow')) {
$this->get('craue.form.flow')->setRequest($this->get('request'));
}
if ($this->initialized('ca.form.flow.review_form')) {
$this->get('ca.form.flow.review_form')->setRequest($this->get('request'));
}
} Line 12787 is: $this->get('ca.form.flow.review_form')->setRequest($this->get('request')); Service definition of ca.form.flow.review_form:
class: ...
parent: "craue.form.flow"
scope: "request"
arguments:
- "@translator"
calls:
- ["setFormType", ["@..."]] |
This PR introduced the BC break: #19689 |
See #19847 |
Same here: worked locally on an app with Sf 2.8.9 but test system pulled 2.8.10 and 💥 |
same happened here,
|
Same here, downgrade to 2.8.9 solved problem. |
Same here. |
1 similar comment
Same here. |
Same here |
1 similar comment
Same here |
Same here. Using 2.7.17. |
I think we don't need any more "same here", we've heard you and we actually have some PR to fix it :) |
Uh oh!
There was an error while loading. Please reload this page.
After updating from 2.8.9 to 2.8.10 I experience the following exception for any request. Downgrading again resolves the issue. No other composer dependencies were updated in the process.
This might be related to #19825 and also feels like a BC break.
The text was updated successfully, but these errors were encountered: