Skip to content

Conversation

@smnandre
Copy link

@smnandre smnandre commented Feb 3, 2024

No description provided.

This really light object allow us to not expose an array (ex: RegistryInterface), have a immutable object, and allow us some interesting manipulation (toHtml, withAttributes, ..) while keeping high performances.
(i'd put that on an Icon class, but this is another PR 👼)

I really would like to
1. normalize things as early as possible
2. don't have multiple place where those checks are done, the main risk beeing they are not done..
This was referenced Feb 3, 2024
* @throws \InvalidArgumentException if the ID is not valid
* @see isValidId()
*/
public static function idToName(string $id): string
Copy link
Owner

Choose a reason for hiding this comment

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

we need to actually use these new methods now, right?

Copy link
Author

Choose a reason for hiding this comment

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

Of course, i try to do micro step by micro step because the rebase dance is not my first talent :)

Copy link
Author

Choose a reason for hiding this comment

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

Better now :)

@kbond kbond merged commit cbc304b into kbond:feat/ux-icons-draft-2 Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants