-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
EZP-32164: Implemented IconPathResolver service #24
Conversation
5f1728a
to
6570034
Compare
6570034
to
51614da
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.
It should be quite quick to add simple unit test coverage for the implementation, just one method (with and without 2nd argument). Otherwise looks good.
CS remark:
|
||
interface IconPathResolverInterface | ||
{ | ||
public function resolve(string $icon, string $set = null): string; |
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.
public function resolve(string $icon, string $set = null): string; | |
public function resolve(string $icon, ?string $set = null): string; |
Travis should be green in a minute |
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.
Thx, I know it was a painful experience! ;) Looks good.
Minor CS:
tests/IbexaPlatformAssetsBundle/lib/Resolver/IconPathResolverTest.php
Outdated
Show resolved
Hide resolved
IconPathResolverTest::resolveDataProvider
2.2
TODO:
$ composer fix-cs
).