Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ffcfb9

Browse files
committed
[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).
1 parent ec1e7ca commit 2ffcfb9

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
This service definition only defines the scope of the request.
4141
It is used to check references scope.
4242
-->
43-
<service id="request" scope="request" synthetic="true" />
43+
<service id="request" scope="request" synthetic="true" synchronized="true" />
4444

4545
<service id="service_container" synthetic="true" />
4646

0 commit comments

Comments
 (0)