[FrameworkBundle] made the Request service synchronized
This change allows any service to depend on the Request (via a method call) and always have the right Request instance without the need for the service to be in the request scope (you still need to set the Request reference as non-strict).
This commit is contained in:
parent
ec1e7ca6ac
commit
2ffcfb98c8
@ -40,7 +40,7 @@
|
|||||||
This service definition only defines the scope of the request.
|
This service definition only defines the scope of the request.
|
||||||
It is used to check references scope.
|
It is used to check references scope.
|
||||||
-->
|
-->
|
||||||
<service id="request" scope="request" synthetic="true" />
|
<service id="request" scope="request" synthetic="true" synchronized="true" />
|
||||||
|
|
||||||
<service id="service_container" synthetic="true" />
|
<service id="service_container" synthetic="true" />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user