predicate === MediaService::PROPERTY_LINK && strpos($triple->object, self::FILE_PREFIX) === false ) { $fileObject = $this->getFileSystemService() ->getDirectory($this->getFlySystemManagement()->getOption(FlySystemManagement::OPTION_FS)) ->getFile($triple->object); $file = $this->getFileRefSerializer()->serialize($fileObject); $triple->object = $file; } } private function getFileSystemService(): FileSystemService { return $this->getServiceLocator()->get(FileSystemService::SERVICE_ID); } private function getFlySystemManagement(): FlySystemManagement { return $this->getServiceLocator()->get(FlySystemManagement::SERVICE_ID); } private function getFileRefSerializer(): FileReferenceSerializer { return $this->getServiceLocator()->get(FileReferenceSerializer::SERVICE_ID); } }