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
minor #2678 [Icons] improve DX when symfony/http-client is not installed (kbond)
This PR was merged into the 2.x branch.
Discussion
----------
[Icons] improve DX when `symfony/http-client` is not installed
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| Docs? | yes
| Issues | Alternative to #2667
| License | MIT
- throw exception if http-client is not available
- always enable iconify, iconify commands and on-demand registry
- display "potential" missing icons to `ux:icons:warm-cache` (addresses #2668)
Exception when rendering a template w/o http-client:
<img width="1041" alt="Screenshot 2025-04-05 at 1 13 18 PM" src="https://github.com/user-attachments/assets/c243c898-a4e8-4614-943f-bb6f138e07a4" />
Exception when running ux:icon:* command w/o http-client:
<img width="961" alt="Screenshot 2025-04-05 at 1 14 50 PM" src="https://github.com/user-attachments/assets/f584a365-5a45-4c85-acc3-251cc8d6e8b5" />
Output of `ux:icons:warm -v` when there are "potential" invalid icons:
<img width="631" alt="Screenshot 2025-04-05 at 1 38 06 PM" src="https://github.com/user-attachments/assets/a430608d-44ed-4998-9207-e9530f1019d5" />
**TODO**
- [x] update changelog
- [x] #2668?
Commits
-------
c14e89b [Icons] improve DX when `symfony/http-client` is not installed
Copy file name to clipboardExpand all lines: src/Icons/CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# CHANGELOG
2
2
3
+
## 2.25.0
4
+
5
+
- Improve DX when `symfony/http-client` is not installed.
6
+
3
7
## 2.24.0
4
8
5
9
- Add `xmlns` attribute to icons downloaded with Iconify, to correctly render icons browser as an external file, in SVG editors, and in files explorers or text editors previews.
thrownewHttpClientNotInstalledException('You must install "symfony/http-client" to use icons from ux.symfony.com/icons. Try running "composer require symfony/http-client".');
0 commit comments