namespace wcf\system\importer;
use wcf\data\media\Media;
-use wcf\data\media\MediaAction;
use wcf\data\media\MediaEditor;
use wcf\system\exception\SystemException;
use wcf\system\language\LanguageFactory;
-use wcf\system\upload\DefaultUploadFileSaveStrategy;
use wcf\system\WCF;
use wcf\util\FileUtil;
*/
protected $className = Media::class;
- /**
- * @var DefaultUploadFileSaveStrategy
- */
- private $saveStrategy;
-
/**
* @inheritDoc
*/
return $media->mediaID;
}
-
- /**
- * @return DefaultUploadFileSaveStrategy
- */
- private function getSaveStrategy()
- {
- if ($this->saveStrategy === null) {
- $this->saveStrategy = new DefaultUploadFileSaveStrategy(MediaAction::class);
- }
-
- return $this->saveStrategy;
- }
}