Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
extractApp example
if
(
$storeType
=== self::PLUGIN
)
{
$this
->cacheClearer->
clearContainerCache
(
)
;
}
return
$storeType
;
}
$type
=
$this
->pluginZipDetector->
detect
(
$file
)
;
match
(
$type
)
{
self::PLUGIN =>
$this
->
extractPlugin
(
$file
,
$delete
)
,
self::APP =>
$this
->
extractApp
(
$file
,
$delete
)
,
}
;
return
$type
;
}
public
function
uploadPlugin
(
UploadedFile
$file
, Context
$context
)
: void
{
/** @var string $tempFileName */
$tempFileName
=
tempnam
(
sys_get_temp_dir
(
)
,
$file
->
getClientOriginalName
(
)
)
;
$tempRealPath
=
realpath
(
$tempFileName
)
;
\
assert
(
\
is_string
(
$tempRealPath
)
)
;