Преглед на файлове

[FrameworkBundle] Assets templating helper does not need request scope

No other helpers have request scope and the assets helper's parameters don't appear to depend on the request in any way, so this appears to be unnecessary. As-is, request scope here prevents use of the assets helper from a console command that may need to internally render a template.
Jeremy Mikola преди 14 години
родител
ревизия
d6b915a174
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Resources/config/templating_php.xml

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Resources/config/templating_php.xml

@@ -34,7 +34,7 @@
             <tag name="templating.helper" alias="slots" />
         </service>
 
-        <service id="templating.helper.assets" class="%templating.helper.assets.class%" scope="request">
+        <service id="templating.helper.assets" class="%templating.helper.assets.class%">
             <tag name="templating.helper" alias="assets" />
             <argument /> <!-- default package -->
             <argument type="collection" /> <!-- named packages -->