You are a developer and looking for Shopware projects?
Apply Now!
getPossibleFileName example
string
$fileExtension
,
?string
$mediaId
,
Context
$context
)
: string
{
$mediaWithRelatedFilename
=
$this
->
finderOtherMediaWithFileName
(
$preferredFileName
,
$fileExtension
,
$mediaId
,
$context
)
;
return
$this
->
getPossibleFileName
(
$mediaWithRelatedFilename
,
$preferredFileName
)
;
}
abstract
protected
function
getNextFileName
(
string
$originalFileName
,
MediaCollection
$relatedMedia
,
int
$iteration
)
: string;
private
function
finderOtherMediaWithFileName
(
string
$fileName
,
string
$fileExtension
,
?