Skip to content

[FrameworkBundle] Throw runtime exception when trying to use asset-mapper while http-client is disabled #57533

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

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jun 26, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Replaces #57219 and #57073

@carsonbot carsonbot added this to the 6.4 milestone Jun 26, 2024
@symfony symfony deleted a comment from carsonbot Jun 26, 2024
@nicolas-grekas nicolas-grekas merged commit 7bdfccf into symfony:6.4 Jun 28, 2024
8 of 10 checks passed
@fabpot fabpot mentioned this pull request Jun 28, 2024
Comment on lines -1337 to -1338
if (!$assetEnabled) {
$container->removeDefinition('asset_mapper.asset_package');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this just broke something on 6.4. I'm having this error : The service "asset_mapper.asset_package" has a dependency on a non-existent service "assets._default_package".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #57589

This was referenced Jun 28, 2024
@nicolas-grekas nicolas-grekas deleted the am-hc branch July 18, 2024 08:41
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.

4 participants