Skip to content

Commit

Permalink
Fix usage of decorated form metadata provider (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored May 27, 2021
1 parent 78e4512 commit c0ba105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content/ArticleDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -76,7 +76,7 @@ class ArticleDataProvider implements DataProviderInterface, DataProviderAliasInt
protected $defaultLimit;

/**
* @var FormMetadataProvider|null
* @var MetadataProviderInterface|null
*/
private $formMetadataProvider;

Expand All @@ -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;
Expand Down

0 comments on commit c0ba105

Please sign in to comment.