Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
hydrateFiles example
return
$this
->
findMissingSnippets
(
$snippetFileMappings
,
$availableISOs
)
;
}
protected
function
getAllFiles
(
)
: SnippetFileCollection
{
$deprecatedFiles
=
$this
->
findDeprecatedSnippetFiles
(
)
;
$administrationFiles
=
$this
->snippetFileHandler->
findAdministrationSnippetFiles
(
)
;
$storefrontSnippetFiles
=
$this
->snippetFileHandler->
findStorefrontSnippetFiles
(
)
;
return
$this
->
hydrateFiles
(
array_merge
(
$deprecatedFiles
,
$administrationFiles
,
$storefrontSnippetFiles
)
)
;
}
/** * @param array<string> $files */
private
function
hydrateFiles
(
array
$files
)
: SnippetFileCollection
{
$snippetFileCollection
=
new
SnippetFileCollection
(
)
;
foreach
(
$files
as
$filePath
)
{
$fileName
=
basename
(
$filePath
)
;