Move file

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2016-10-14 21:21:37 +02:00
parent 02525fd98b
commit d6f1287ae6
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
2 changed files with 5 additions and 4 deletions

View File

@ -109,7 +109,7 @@ class PreviewController extends Controller {
return new DataResponse([], Http::STATUS_FORBIDDEN);
}
$preview = new \OC\Preview2(
$preview = new \OC\Preview\Generator(
$this->root,
$this->config,
$this->previewManager,

View File

@ -20,7 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OC;
namespace OC\Preview;
use OC\Files\View;
use OCP\Files\File;
@ -35,7 +36,7 @@ use OCP\Image;
use OCP\IPreview;
use OCP\Preview\IProvider;
class Preview2 {
class Generator {
//the thumbnail folder
const THUMBNAILS_FOLDER = 'thumbnails';
@ -87,7 +88,7 @@ class Preview2 {
* @return ISimpleFile
* @throws NotFoundException
*/
public function getPreview($width = -1, $height = -1, $crop = false, $mode = Preview2::MODE_FILL) {
public function getPreview($width = -1, $height = -1, $crop = false, $mode = Generator::MODE_FILL) {
if (!$this->previewManager->isMimeSupported($this->file->getMimeType())) {
throw new NotFoundException();
}