/** * @param string $srcUri * @return ImageFile */ public function createFromLocalFile($srcUri) { return parent::createFromLocalFile($srcUri); }
/** * This is a wrapper for (new FileRetriever())->create() * * @param mixed $data Is either an URL, or an array from form upload or a local path. * @param int $source One of File::SOURCE_XXX * @param int $maxFileSize in kilobytes. * @return File */ public static function create($data, $source, $maxFileSize = 10000000) { $fileRetriever = new FileRetriever(); return $fileRetriever->create($data, $source, $maxFileSize); }