Skip to content
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

EZP-27666: Services should depend upon UrlRedecoratorInterface instead of UrlRedecorator #2056

Conversation

adamwojs
Copy link
Member

JIRA: https://jira.ez.no/browse/EZP-27666

Description:

This PR change a type hints from eZ\Publish\Core\IO\UrlRedecorator into eZ\Publish\Core\IO\UrlRedecoratorInterface in the following services:

  • eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\ImageConverter
  • eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\DoctrineStorage
  • eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage

@adamwojs adamwojs requested a review from alongosz July 17, 2017 11:46
@adamwojs adamwojs assigned bdunogier and unassigned bdunogier Jul 17, 2017
@adamwojs adamwojs requested a review from bdunogier July 17, 2017 11:46
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

Looks good, small nitpick:

@@ -22,10 +22,10 @@ class ImageConverter implements Converter
/** @var IOServiceInterface */
private $imageIoService;

/** @var UrlRedecorator */
/** @var UrlRedecoratorInterface */
Copy link
Member

Choose a reason for hiding this comment

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

We rather try to use FQCN in PhpDoc, so this is another thing that we missed initially. While at this, could you also change the above IOServiceInterface for the consistency's sake?

@andrerom andrerom merged commit 963f50b into ezsystems:master Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants