if (isset($data['__media_path'
])) { $media->
setPath($data['__media_path'
]);
$media->
setFile($this->mediaService->
getUrl($data['__media_path'
]));
} /*
* Live Migration to add width/height to images
*/
if ($this->
isUpdateRequired($media,
$data)) { $data =
$this->
updateMedia($data);
} if (isset($data['__media_width'
])) { $media->
setWidth((int) $data['__media_width'
]);
} if (isset($data['__media_height'
])) { $media->
setHeight((int) $data['__media_height'
]);
} if ($this->
shouldAddThumbnails($media->
getType(),
$data)) {