‪TYPO3CMS  10.4
cli.php
Go to the documentation of this file.
1 #!/usr/bin/env php
2 <?php
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
16 // Exit early if php requirement is not satisfied.
17 if (PHP_VERSION_ID < 70200 || PHP_VERSION_ID >= 80000) {
18  die('This version of TYPO3 CMS requires PHP >= 7.2 and < 8.0');
19 }
20 
25 call_user_func(function () {
26  $classLoader = require __DIR__ . '/../../../../../../vendor/autoload.php';
27  ‪\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(4, \‪TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_CLI);
28  ‪\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\‪TYPO3\CMS\Core\Console\CommandApplication::class)->run();
29 });
‪TYPO3
‪TYPO3\CMS\Core\Core\Bootstrap\init
‪static ContainerInterface init(ClassLoader $classLoader, bool $failsafe=false)
Definition: Bootstrap.php:75
‪TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run
‪static run(int $entryPointLevel=0, int $requestType=self::REQUESTTYPE_FE)
Definition: SystemEnvironmentBuilder.php:62