[TASK] Move vendor/ directory out of contrib/
[Packages/TYPO3.CMS.git] / typo3 / thumbs.php
1 <?php
2 /*
3 * This file is part of the TYPO3 CMS project.
4 *
5 * It is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License, either version 2
7 * of the License, or any later version.
8 *
9 * For the full copyright and license information, please read the
10 * LICENSE.txt file that was distributed with this source code.
11 *
12 * The TYPO3 project - inspiring people to share!
13 */
14
15 /**
16 * Generates a thumbnail and returns an image stream, either GIF/PNG or JPG
17 * @deprecated since TYPO3 CMS 7, will be removed with TYPO3 CMS 8, use the corresponding Resource objects and Processing functionality
18 */
19 call_user_func(function() {
20 $classLoader = require __DIR__ . '/vendor/autoload.php';
21 (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run(function() {
22 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
23 'thumbs.php is no longer in use, please use the corresponding Resource objects to generate a preview functionality for thumbnails.'
24 );
25 $GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\ThumbnailView::class);
26 $GLOBALS['SOBE']->init();
27 $GLOBALS['SOBE']->main();
28 });
29 });