[TASK] Move vendor/ directory out of contrib/
[Packages/TYPO3.CMS.git] / typo3 / ajax.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 * AJAX dispatcher
17 * main entry point for AJAX calls in the TYPO3 Backend. Based on $TYPO3_AJAX the Bootstrap let's the request
18 * handled by TYPO3\CMS\Backend\AjaxRequestHandler and AjaxController.
19 * See $TYPO3_CONF_VARS['BE']['AJAX'] and the Core APIs on how to register an AJAX call in the TYPO3 Backend.
20 */
21 call_user_func(function() {
22 $classLoader = require __DIR__ . '/vendor/autoload.php';
23 (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run(function() {
24 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
25 'The entry point to ajax.php was moved to index.php with ajaxID given. Please use BackendUtility::getAjaxUrl(\'myAjaxKey\') to link to the AJAX Call. This script will be removed in TYPO3 CMS 8.'
26 );
27 });
28 });