mediaResolver = $mediaResolver; return $this; } public function discover(array $fileReferences): array { $ids = []; foreach ($fileReferences as $reference) { $mediaAsset = $this->getMediaResolver()->resolve($reference); if ($mediaAsset->getMediaSource() instanceof MediaSource) { $ids[] = tao_helpers_Uri::decode($mediaAsset->getMediaIdentifier()); } } return $ids; } private function getMediaResolver(): TaoMediaResolver { if (!$this->mediaResolver) { $this->mediaResolver = new ItemMediaResolver('', null); } return $this->mediaResolver; } }