-
-
Notifications
You must be signed in to change notification settings - Fork 353
[Icons] improve DX when symfony/http-client
is not installed
#2678
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
Conversation
8bc80c3
to
2c18a5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, great!
|
||
.. caution:: | ||
|
||
The process to find icons to cache in your Twig templates is imperfect. It |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe advise Lock command here? It shows details (-vv) on wether the IconSet does not exist (99% of the false positive extracted from templates) or if there is a real problem with an icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this caution admonition to the lock command section too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👏
- 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`
2c18a5f
to
c14e89b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
ux:icons:warm-cache
(addresses [Icons] report issues in ux:icons:warm-cache #2668)Exception when rendering a template w/o http-client:

Exception when running ux:icon:* command w/o http-client:

Output of

ux:icons:warm -v
when there are "potential" invalid icons:TODO