8000 [TwigBundle] fix asset package availability detection by Nek- · Pull Request #43791 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBundle] fix asset package availability detection #43791

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

Closed
wants to merge 1 commit into from

Conversation

Nek-
Copy link
Contributor
@Nek- Nek- commented Oct 27, 2021
Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #41672
License MIT

This is an attempt to fix #41672 . It actually fixes it for the asset package. I've no idea if there are other impacts and how to reproduce them.

If the package assets is available in the dependencies, Symfony will
enable automatically assets. Otherwise assets are disabled. The problem
is that sometimes you want to explicetely enable assets features (in the
case of testing an application you may have assets as **dev**
dependency).

In the case assets are enable explicitely, the service assets.packages
is defined and we should not remove the definition
twig.extension.assets.
@Nek- Nek- requested a review from yceruto as a code owner October 27, 2021 18:28
@carsonbot carsonbot added this to the 5.3 milestone Oct 27, 2021
@Nek- Nek- changed the title feat: fix asset package availability detection [TwigBundle] fix asset package availability detection Oct 28, 2021
@nicolas-grekas
Copy link
Member

Closing in favor of #43801, thanks for providing more insights on the topic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0