diff --git a/src/GraphQL/Resolver/ImageFieldResolver.php b/src/GraphQL/Resolver/ImageFieldResolver.php index 38fe0b52..e0f18287 100644 --- a/src/GraphQL/Resolver/ImageFieldResolver.php +++ b/src/GraphQL/Resolver/ImageFieldResolver.php @@ -28,10 +28,6 @@ class ImageFieldResolver * @var \eZ\Publish\API\Repository\ContentService */ private $contentService; - /** - * @var array - */ - private $variations; /** * @var FieldType\Image\Type */ @@ -45,12 +41,10 @@ public function __construct( FieldType\Image\Type $imageFieldType, VariationHandler $variationHandler, ContentLoader $contentLoader, - ContentService $contentService, - array $variations + ContentService $contentService ) { $this->variationHandler = $variationHandler; $this->contentService = $contentService; - $this->variations = $variations; $this->fieldType = $imageFieldType; $this->contentLoader = $contentLoader; } diff --git a/src/Resources/config/services/resolvers.yaml b/src/Resources/config/services/resolvers.yaml index fd9da43b..d376def3 100644 --- a/src/Resources/config/services/resolvers.yaml +++ b/src/Resources/config/services/resolvers.yaml @@ -112,7 +112,6 @@ services: $imageFieldType: "@ezpublish.fieldType.ezimage" $variationHandler: "@ezpublish.fieldType.ezimage.variation_service" $contentService: "@ezpublish.siteaccessaware.service.content" - $variations: "$image_variations$" tags: - { name: overblog_graphql.resolver, alias: "ImageVariations", method: "resolveImageVariations" } - { name: overblog_graphql.resolver, alias: "ImageVariation", method: "resolveImageVariation" }