Skip to content

[Icons] Icon changes #1665

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
Apr 1, 2024
Merged

[Icons] Icon changes #1665

merged 1 commit into from
Apr 1, 2024

Conversation

kbond
Copy link
Member

@kbond kbond commented Mar 27, 2024

Q A
Bug fix? no
New feature? no
Issues n/a
License MIT
  1. Removed Serializable from Icon (this isn't needed unless I'm mistaken)
  2. I moved Icon up a level (this is a personal preference). @smnandre did you have plans for more classes in the Svg namespace?

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Mar 27, 2024
Comment on lines -196 to -205
public function serialize(): string
{
return serialize([$this->innerSvg, $this->attributes]);
}

public function unserialize(string $data): void
{
[$this->innerSvg, $this->attributes] = unserialize($data);
}

Copy link
Member

Choose a reason for hiding this comment

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

Those methods were here for caching purposes no?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, but this is handled by __serialize/__unserialize IIUC.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's my understanding that the Serializable interface is being phased out.

@smnandre
Copy link
Member

  1. I moved Icon up a level (this is a personal preference). @smnandre did you have plans for more classes in the Svg namespace?

Yes, but we will see when it happens. 100% support on this move right now.

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Mar 30, 2024
@kbond kbond force-pushed the icon/remove-serializable branch from a49ad9f to b8930e4 Compare April 1, 2024 12:33
@kbond kbond merged commit e950156 into symfony:2.x Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants