2 declare(strict_types = 1);
52 bool $relativeToCurrentScript,
56 || !$this->
has($resource)
66 if ($this->
has($resource)) {
74 return in_array($resource->
getIdentifier(), $this->fileIdentifiers,
true);
79 $queryParameterArray = [
'eID' =>
'dumpFile',
't' =>
''];
80 if ($resource instanceof
File) {
81 $queryParameterArray[
'f'] = $resource->getUid();
82 $queryParameterArray[
't'] =
'f';
84 $queryParameterArray[
'p'] = $resource->getUid();
85 $queryParameterArray[
't'] =
'p';
88 $queryParameterArray[
'token'] = GeneralUtility::hmac(implode(
'|', $queryParameterArray),
'resourceStorageDumpFile');
90 $publicUrl .=
'?' . http_build_query($queryParameterArray,
'',
'&', PHP_QUERY_RFC3986);