Browse Source

[FrameworkBundle] added a comment for the request service

This reverts commit c68501cca4151770ba6fb02b39032099d48f6921.
Fabien Potencier 14 years ago
parent
commit
8c0d46365d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml

+ 9 - 0
src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml

@@ -27,6 +27,15 @@
             <call method="setEventDispatcher"><argument type="service" id="event_dispatcher" /></call>
         </service>
 
+        <!--
+            If you want to change the Request class, modify the code in
+            your front controller (app.php) so that it passes an instance of
+            YourRequestClass to the Kernel.
+            This service definition only defines the scope of the request.
+            It is used to check references scope.
+        -->
+        <service id="request" scope="request" />
+
         <service id="response" class="%response.class%" scope="prototype">
             <call method="setCharset">
                 <argument>%kernel.charset%</argument>