$this->pluginExtractor->
extract($file,
$delete,
$storeType);
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);