Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AsseticBundle] added support for parameter replacement in asset inputs
{% javascripts '%kernel.root_dir%/Resources/css/main.css' %} ... {% endjavascripts %}
- Loading branch information
1 parent
af84cfe
commit 3e68eb6
Showing
3 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm tricking the container into giving me a populated parameter bag here (notice
getDefaultParameters()
is protected) so I can perform parameter replacement. Should we provide a better way to do this? Maybe have the dumped container lazily create the parameter bag? Right nowgetParameterBag()
returnsnull
.