[TASK] Move vendor/ directory out of contrib/
[Packages/TYPO3.CMS.git] / typo3 / alt_file_navframe.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 * Folder tree in the File main module.
17 */
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('Usage of alt_file_navframe.php is deprecated since TYPO3 CMS 7, and will be removed in TYPO3 CMS 8');
23
24 // Make instance if it is not an AJAX call
25 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
26 $fileSystemNavigationFrameController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController::class);
27 $fileSystemNavigationFrameController->initPage();
28 $fileSystemNavigationFrameController->main();
29 $fileSystemNavigationFrameController->printContent();
30 }
31 });
32 });