Skip to content
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

Unexpected "stylesheets" tag #5986

Closed
itrascastro opened this issue Dec 8, 2015 · 2 comments
Closed

Unexpected "stylesheets" tag #5986

itrascastro opened this issue Dec 8, 2015 · 2 comments
Labels
hasPR A Pull Request has already been submitted for this issue.

Comments

@itrascastro
Copy link

Testing Symfony 3 I get this error when I follow this example:

http://symfony.com/doc/current/cookbook/assetic/asset_management.html#cookbook-assetic-including-css

Code:

{% stylesheets 'css/*' filter='cssrewrite' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}

Error:

Unknown "stylesheets" tag in ::base.html.twig at line 14
@wouterj
Copy link
Member

wouterj commented Dec 8, 2015

As of Symfony 2.8, the AsseticBundle is no longer included in the Symfony Standard Edition. If you want to use Assetic, you have to install & register it:

  1. Execute this command: composer require symfony/assetic-bundle
  2. Add new Symfony\Bundle\AsseticBundle\AsseticBundle(), to the $bundles array in app/AppKernel.php

As it has been removed just before the 2.8/3.0 releases, we didn't update the docs yet. However, it'll be updated soon by #5973

@wouterj wouterj added the hasPR A Pull Request has already been submitted for this issue. label Dec 8, 2015
@itrascastro
Copy link
Author

Thank you

xabbuh added a commit that referenced this issue Dec 13, 2015
… 2.8/3.0 (javiereguiluz)

This PR was squashed before being merged into the 2.8 branch (closes #5973).

Discussion
----------

Added caution notes about the removal of AsseticBundle in 2.8/3.0

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.8, 3.0
| Fixed tickets | #5986

As expected, the removal of AsseticBundle is causing confusion among Symfony users. See for example http://stackoverflow.com/questions/34105114/assetic-not-found-in-symfony-2-8-and-3-0/34105138

This PR adds a lot of caution notes about AseticBundle removal and how to fix this issue.

Commits
-------

2835e35 Added caution notes about the removal of AsseticBundle in 2.8/3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hasPR A Pull Request has already been submitted for this issue.
Projects
None yet
Development

No branches or pull requests

2 participants