-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[3.0][FrameworkBundle] Add assets helper #14972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hmm Travis didn't run in this PR. |
Please be aware that there is a very high change that PHP templating support will be removed from core in Symfony 3. |
Yes, i'm aware of that, but while we discuss if the templating support is removed or not i want to keep this here. |
And this it the wrong helper IMHO, if you look at the docs http://symfony.com/doc/current/components/templating/helpers/assetshelper.html the class |
Also again I think the service will be replaced anyway, the discussion here is just about the helper. I would recommend to close this PR here and continue the discussion in #14956 |
Closing this in favor of drop the Templating component. |
This should be reopened again. There currently is PHP templating support in Symfony 3 (dropping it was reverted), but there all helpers related to assets are removed. |
@wouterj I'm going to see if I can restore al the code related to the Templating component, but we should merge this in 3.1 or in 3.0 as a bug fix? |
closed in favour of #17041 |
This PR was merged into the 3.0 branch. Discussion ---------- [FrameworkBundle] Added the assets helper again | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT This PR is a follow up of #14972, we deprecated and removed the AssetsHelper in 2.7/3.0 doing impossible to use the Asset component and the PHP templates together, I've submitted this PR to be merged in 3.0 because IMO this is a bug fix, but we documented the deprecation and removal of the helper, what we should do here? (https://github.com/symfony/symfony/blob/3.0/UPGRADE-3.0.md#frameworkbundle and https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.7.md#frameworkbundle) cc/ @wouterj Commits ------- 98cb838 Added the assets helper again
This PR adds again the
AssetsHelper
removed in #13666 but without the BC layer. Without this helper we can't use the Asset component in a PHP template.If all of us agree with this, we should fix the UPGRADE-2.7.md file updated in #14940