From ed85426411db4cfd42b51dff8ad1161511bc60ba Mon Sep 17 00:00:00 2001 From: Maciej Kobus Date: Thu, 2 Apr 2020 11:58:16 +0200 Subject: [PATCH] EZP-30543: Removed Dynamic Settings functionality from kernel (#81) --- src/GraphQL/Resolver/ImageFieldResolver.php | 8 +------- src/Resources/config/services/resolvers.yaml | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) 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" }