You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature symfony#57073 [AssetMapper][FrameworkBundle] Do not require http_client service (ruudk)
This PR was submitted for the 6.4 branch but it was merged into the 7.2 branch instead.
Discussion
----------
[AssetMapper][FrameworkBundle] Do not require `http_client` service
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? |no
| Deprecations? |no
| Issues |
| License | MIT
This makes it possible to use AssetMapper with `http_client` disabled on the framework.
It will automatically instantiate the required HttpClient.
Example:
```php
$configurator->extension(
'framework',
[
'http_client' => [
'enabled' => false,
],
'asset_mapper' => [
'paths' => [
'assets/',
],
],
]
);
```
This fixes the following problems:
> The service "asset_mapper.importmap.resolver" has a dependency on a non-existent service "http_client".
> The service "asset_mapper.importmap.auditor" has a dependency on a non-existent service "http_client".
> The service "asset_mapper.importmap.update_checker" has a dependency on a non-existent service "http_client".
Commits
-------
b5e39ec Do not require `http_client` service
0 commit comments