[TASK] Move vendor/ directory out of contrib/
[Packages/TYPO3.CMS.git] / typo3 / show_item.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 call_user_func(function() {
16 $classLoader = require __DIR__ . '/vendor/autoload.php';
17 (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run(function() {
18 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
19 'The entry point to show_item was moved to an own module. Please use BackendUtility::getModuleUrl(\'show_item\') to link to show_item.php. This script will be removed in TYPO3 CMS 8.'
20 );
21
22 $elementInformationController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
23 \TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::class
24 );
25 $elementInformationController->main();
26 $elementInformationController->printContent();
27 });
28 });