From c0ba105e5789b8a7675fe6db00c3a137f6e2b2c0 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 27 May 2021 15:23:15 +0200 Subject: [PATCH] Fix usage of decorated form metadata provider (#573) --- Content/ArticleDataProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content/ArticleDataProvider.php b/Content/ArticleDataProvider.php index 00e7cd1e2..954794e19 100644 --- a/Content/ArticleDataProvider.php +++ b/Content/ArticleDataProvider.php @@ -19,8 +19,8 @@ use ONGR\ElasticsearchDSL\Sort\FieldSort; use ProxyManager\Factory\LazyLoadingValueHolderFactory; use ProxyManager\Proxy\LazyLoadingInterface; -use Sulu\Bundle\AdminBundle\Metadata\FormMetadata\FormMetadataProvider; use Sulu\Bundle\AdminBundle\Metadata\FormMetadata\TypedFormMetadata; +use Sulu\Bundle\AdminBundle\Metadata\MetadataProviderInterface; use Sulu\Bundle\ArticleBundle\Document\ArticleDocument; use Sulu\Bundle\ArticleBundle\Document\ArticleViewDocumentInterface; use Sulu\Bundle\PageBundle\Content\Types\SegmentSelect; @@ -76,7 +76,7 @@ class ArticleDataProvider implements DataProviderInterface, DataProviderAliasInt protected $defaultLimit; /** - * @var FormMetadataProvider|null + * @var MetadataProviderInterface|null */ private $formMetadataProvider; @@ -93,7 +93,7 @@ public function __construct( ArticleResourceItemFactory $articleResourceItemFactory, string $articleDocumentClass, int $defaultLimit, - FormMetadataProvider $formMetadataProvider = null, + MetadataProviderInterface $formMetadataProvider = null, TokenStorageInterface $tokenStorage = null ) { $this->searchManager = $searchManager;