Navigation Menu

Skip to content

Commit

Permalink
[FrameworkBundle] Assets templating helper does not need request scope
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmikola committed Sep 26, 2011
1 parent 72e82eb commit d6b915a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 -->
Expand Down

0 comments on commit d6b915a

Please sign in to comment.