sys_get_temp_dir(),
DIRECTORY_SEPARATOR,
basename($this->
Request()->
get('filePath'
)) );
$preset =
$this->container->
get('shopware.emotion.emotion_importer'
)->
import($filePath);
$this->
View()->
assign([ 'success' => true,
'presetId' =>
$preset->
getId(),
'presetData' =>
$preset->
getPresetData(),
'emotionTranslations' =>
$preset->
getEmotionTranslations(),
]);
} /**
* Execute cleanup on imported emotion files.
*
* @throws InvalidArgumentException If the passed filePath is empty (code: 1)
*
* @return void
*/
public function afterImportAction() {