6ed208ef7c94a269673b64ac8f38c1e1ae08ab99
[Packages/TYPO3.CMS.git] / typo3 / init.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 * TYPO3 Backend initialization
17 *
18 * This script was called by every backend script to set up the bootstrap.
19 * The script authenticates the backend user.
20 * In addition this script also initializes the database and other depending on LocalConfiguration.php
21 *
22 * IMPORTANT:
23 * This script exits if no user is logged in!
24 * If you want the script to return even if no user is logged in,
25 * you must define the constant TYPO3_PROCEED_IF_NO_USER=1
26 * before you include this script.
27 *
28 *
29 * This script does the following:
30 * - extracts and defines path's
31 * - includes certain libraries
32 * - authenticates the user
33 * - load the groupdata for the user and set filemounts / webmounts
34 *
35 * For a detailed description of this script, the scope of constants and variables in it,
36 * please refer to the document "Inside TYPO3"
37 *
38 * Please note that this file might be removed in the future in favor of adding these lines to all entry
39 * scripts as well.
40 */
41 call_user_func(function() {
42 $classLoader = require __DIR__ . '/contrib/vendor/autoload.php';
43 (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run(function() {
44 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog('Usage of typo3/init.php is deprecated since TYPO3 CMS 7, and will be removed in TYPO3 CMS 8. Initialize the bootstrap call directly in your entry script.');
45 });
46 });